主域:www.kientrucht.com
文件夹: public_html/
文件:索引.php
檔案存取:public_html/.htaccess
RewriteEngine on
Options -Indexes
DirectoryIndex index.php
RewriteRule ^admin/$ admin/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+).html$ index.php?com=$1 [L]
RewriteRule ^([a-zA-Z0-9_-]+).html/$ index.php?com=$1 [L]
RewriteRule ^([a-zA-Z0-9_-]+).html/p=([0-9]+)$ index.php?com=$1&p=$2 [L]
RewriteRule ^([a-zA-Z0-9_-]+).html/keyword=(.*)/p=([0-9]+)$ index.php?com=$1&keyword=$2&p=$3 [L]
RewriteRule ^([a-zA-Z0-9_-]+).html/keyword=(.*)/$ index.php?com=$1&keyword=$2 [L]
RewriteRule ^([a-zA-Z0-9_-]+).html/keyword=(.*)$ index.php?com=$1&keyword=$2 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php?com=$1&lang=$2 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)-([0-9]+).html$ index.php?com=$1&id=$3 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/$ index.php?com=$1&idl=$2 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/p=([0-9]+)$ index.php?com=$1&idl=$2&p=$3 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/p=([0-9]+)$ index.php?com=$1&idl=$2&idcat=$3&p=$4 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/$ index.php?com=$1&idl=$2&idcat=$3 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?com=san-pham&idl=$1 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/&p=([0-9]+)$ index.php?com=san-pham&idl=$1&p=$2 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+).html/p=([0-9]+)$ index.php?com=san-pham&idl=$1&idcat=$2&p=$3 [L]
RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+).html$ index.php?com=san-pham&idl=$1&idcat=$2 [L]
子域: beta.kientrucht.com
文件夹:public_html/_beta
文件:public_html/_beta/索引.html
无法访问子域!自动识别为主域(kientrucht.com public_html/不是public_html/_beta/(!
如何编辑子域上任何文件和路径正常工作的当前public_html/.htaccess文件?
通常.htaccess文件在子目录中继承。
您必须在 _beta 文件夹中创建一个新的 .htaccess 文件,并在 _beta/index.html 上重定向。