nicob Posted May 13, 2009 Share Posted May 13, 2009 How do you mod_rewrite www.website.com/start.php?q=keyword to www.website.com/keyword.php ??? Quote Link to comment https://forums.phpfreaks.com/topic/157920-how-to-mod_rewrite-wwwwebsitecomstartphpqkeyword-to/ Share on other sites More sharing options...
Ken2k7 Posted May 13, 2009 Share Posted May 13, 2009 RewriteEngine on RewriteBase / RewriteRule ^start\.php\?q=keyword keyword.php Quote Link to comment https://forums.phpfreaks.com/topic/157920-how-to-mod_rewrite-wwwwebsitecomstartphpqkeyword-to/#findComment-833018 Share on other sites More sharing options...
nicob Posted May 13, 2009 Author Share Posted May 13, 2009 I'm trying to understand this. So for all keywords I have to do something like this? RewriteEngine on RewriteBase / RewriteRule ^start\.php\?q=([a-z]+)$ $1.php Quote Link to comment https://forums.phpfreaks.com/topic/157920-how-to-mod_rewrite-wwwwebsitecomstartphpqkeyword-to/#findComment-833020 Share on other sites More sharing options...
Ken2k7 Posted May 13, 2009 Share Posted May 13, 2009 Well, provided that you have that php file, which I would find very odd. Quote Link to comment https://forums.phpfreaks.com/topic/157920-how-to-mod_rewrite-wwwwebsitecomstartphpqkeyword-to/#findComment-833222 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.