Jump to content

[SOLVED] URL redirect to DB like in WordPress


mr_zhang

Recommended Posts

Hi guys,

I'm impress with the URL system of WordPress. It has no real URL/files, all url are in DB.
e.g. the:
- http://www.domain.com/blog/category/post1.php
- http://www.domain.com/blog/category2/post3.php
while there are no "category" and "category2" folders. There are also no "post1.php" and "post3.php" files. All stored in DB.

Do you guys know how to do this? I'm trying to build one but have no idea whatsoever how to redirect a typed URL in address bar to a DB.

A snippet of code perhaps, as I'm a starter in php.

Regards,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.