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 ??? 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 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 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. 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
Archived
This topic is now archived and is closed to further replies.