samedi 29 novembre 2014

How to use moderewrite when files are in subdir and pass on a id?


Vote count:

0




Have this url: http://example.com/index.php?sideID=subpage/mypage&id=22


want this url: http://example.com/mypage/20


the file subpage is placed inside www/sybpage/mypage.php and is curently needing the id to work correctly.


Im trying with:



#RewriteRule ^([\w!-]+)/([\w!-]+/[^/]+/[\w!-]+)/([0-9]+)?$ index.php?sideID=$1&subpage=$2 [L,QSA,NC]


asked 54 secs ago







How to use moderewrite when files are in subdir and pass on a id?

Aucun commentaire:

Enregistrer un commentaire