Static To Dynamic URL using Modrewrite

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kkonline
Forum Contributor
Posts: 251
Joined: Thu Aug 16, 2007 12:54 am

Static To Dynamic URL using Modrewrite

Post by kkonline »

Hi,
I have site running and wish to convert the url
http://mysite.com/variable
to
http://mysite.com/index.php?action=variable

This requirement is opposite to the usual method to convert dynamic url to static url

How can this be achieved with mod rewrite rules
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Static To Dynamic URL using Modrewrite

Post by social_experiment »

wouldn't removing the rewrite rules that caused the 'clean' urls revert the urls back to their 'normal' form?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply