Php 获取url中的页面导致htaccess加倍
所以我试图用htaccess隐藏我的子文件夹。它完成了它的工作,但是一些GET page出错 因此,与其得到这个Php 获取url中的页面导致htaccess加倍,php,.htaccess,url,get,subdirectory,Php,.htaccess,Url,Get,Subdirectory,所以我试图用htaccess隐藏我的子文件夹。它完成了它的工作,但是一些GET page出错 因此,与其得到这个 hello.com/tentang_kami?page=visi 我得到了这个结果(在我添加了在htaccess中隐藏子文件夹的函数之后) 这是我的htaccess文件 RewriteEngine on RewriteBase / RewriteRule ^$ index.php [L] RewriteCond %{REQUEST_FILENAME}\.php -f Rewrit
hello.com/tentang_kami?page=visi
我得到了这个结果(在我添加了在htaccess中隐藏子文件夹的函数之后)
这是我的htaccess文件
RewriteEngine on
RewriteBase /
RewriteRule ^$ index.php [L]
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*) /$1.php [L]
RewriteCond %{THE_REQUEST} \s/+(.*?/)?(?:index)?(.*?)\.(html|php)[\s?/] [NC]
RewriteRule ^(.*) /%1%2 [R=302,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+halaman/+visitor([^\s]+) [NC]
RewriteRule ^ %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (?!^halaman/visitor/)^(.*)$ /halaman/visitor/$1 [L,NC]
我对主持一个网站很陌生。如果有人能提供任何帮助,那就太好了
RewriteEngine on
RewriteBase /
RewriteRule ^$ index.php [L]
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*) /$1.php [L]
RewriteCond %{THE_REQUEST} \s/+(.*?/)?(?:index)?(.*?)\.(html|php)[\s?/] [NC]
RewriteRule ^(.*) /%1%2 [R=302,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+halaman/+visitor([^\s]+) [NC]
RewriteRule ^ %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (?!^halaman/visitor/)^(.*)$ /halaman/visitor/$1 [L,NC]