Jump to content

Apache rewrite url problem.


killah

Recommended Posts

Well, ive been trying to rewrite this url..

 

something.php?id=xx to something/id/xx which im using

 

RewriteRule ^([^\.]+)/([^\.]+)/([^\.]+)$ $1.php?$2=$3 [NC,L]

 

and work's fine.

 

How ever i want to try

 

something.php?id=xx&p[OR]m to something/id/xx/p[OR]m

 

So i tried this.

 

RewriteRule ^([^\.]+)/([^\.]+)/([^\.]+)/(^\.]+)$ $1.php?$2=$3&$4 [NC,L]

 

But seems to not work..

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/153075-apache-rewrite-url-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.