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 Quote Link to comment 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 Quote Link to comment 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.