由网友(相关可爱呆萌的>>)分享简介:此网址example.com/ad/load.php?id=pay.jpg将成为example.com/ad/pay.jpg我试图做到这一点..但它不工作。这是我的htaccess(成广告文件夹)I tried to do this.. but it doesn't work.Here is my htacc...
此网址
example.com/ad/load.php?id=pay.jpg
将成为
example.com/ad/pay.jpg
我试图做到这一点..但它不工作。
这是我的htaccess(成广告文件夹)
I tried to do this.. but it doesn't work.
Here is my htaccess (into ad
folder)
Options +FollowSymLinks
RewriteEngine On
RewriteBase /ad/
RewriteRule ^(w+) ./load.php?id=$1
修改
在这根 example.com/ad /
我想说明的index.php,但它并不显示。如何解决它。
on this root example.com/ad/
I want to show index.php but it does not show. how to fix it
推荐答案
您的正则表达式应该允许点也。在试试这个 /ad/.htaccess
:
You regex should allow dot also. Try this in /ad/.htaccess
:
DirectoryIndex index.php
Options +FollowSymLinks
RewriteEngine On
RewriteBase /ad/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([w.-]+)/?$ load.php?id=$1 [L,QSA]
相关推荐
最新文章