1
1码不在文件夹1工作不工作,因为我使用2的代码隐藏 子隐藏PHP扩展和隐藏子目录都在同一个网址在.htaccess
my site url is looks like this mysite.com/folder1/file and i want this mysite.com/file hide folder1 and .php but it is not working while using 2code any solution
1code to hide .php
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php
2code to hide sub folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /folder/$1 [L]
您要求的页面不可用 一般错误或已发生 – mridul
其工作,但在我的其他网站 – mridul
2个网站之间有什么区别? – anubhava