i'm trying to make this address:
http://www.mysite.co.uk/Listing/London/34
really look for: http://www.mysite.co.uk/Listing/listed.php?area=London&list=34 behind the scenes.
I tried this ReWrite in the htacess file in "Listing" folder but it dosen't work:
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)$ /listed.php?area=$1&list=$2 [NC,L]
Try a relative substitution path instead:
RewriteRule ^([a-z0-9]+)/([a-z0-9]+)$ listed.php?area=$1&list=$2 [NC,L]
It can also be possible that you're not allowed to use .htaccess files besides in the document root directory.
我认为您只需要从一开始就删除^
并将目的地从/listed.php
更改为/Listing/listed.php
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.