genics Posted March 24, 2008 Share Posted March 24, 2008 Hi folks, I need to change the appearance of my URLs from: /index.php?p=test&c=content To: /test:content So far i've used the following: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?p=$1 [L,QSA] To achieve: /test&c=content So I guess I'm halfway there. Does anybody know how to do the rest? Thanks Link to comment https://forums.phpfreaks.com/topic/97553-rewrite-help/ Share on other sites More sharing options...
MadTechie Posted March 24, 2008 Share Posted March 24, 2008 try this RewriteRule ^(\w+)\w+)$ index.php?p=$1&c=$2 [L,QSA] i assume your always going to have something:something Link to comment https://forums.phpfreaks.com/topic/97553-rewrite-help/#findComment-499161 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.