Jump to content

Rewriting


Boxerman

Recommended Posts

I think you're thinking about this backward.  Inbound links will be in the format of www.yoursite.com/12345-The-Article-Title-Here

 

Your rewrite rule will ignore the title entirely and just use the ID (12345 in this case).  Your rewrite rules cannot access the database.  You would print out links to your site in the "pretty" format and then the rule takes the pretty format, strips out everything but the ID, and uses it.

 

-Dan

Link to comment
https://forums.phpfreaks.com/topic/249704-rewriting/#findComment-1281756
Share on other sites

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.