I have a question regarding mod_rewrite. I know in htaccess I can do the <IfModule>, but what about in PHP? In html I am writing out my links like projects/24 which really is action=projects&id=24. If the server someone installs this app on doesn’t have mod_rewrite, how in PHP do I change the links to just GET vars?
I have a question regarding mod_rewrite. I know in htaccess I can do the
Share
use apache_get_modules()
Edit:
I’m not sure which handicap voted down the correct answer, but he apparently can’t rtm.
Here is some code to illustrate:
Use this to decide which kind of link you want to write.