Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 重写规则的htaccess异常。*index.php[QSA]_.htaccess_Typo3 - Fatal编程技术网

.htaccess 重写规则的htaccess异常。*index.php[QSA]

.htaccess 重写规则的htaccess异常。*index.php[QSA],.htaccess,typo3,.htaccess,Typo3,在typo3 htacces中,通过重写规则完成所有重定向。*index.php[QSA], 但我需要使用php应用程序创建PromoCode foldier,并在adres www.domainname.com/PromoCode下创建自己的index.php。所以我需要将异常添加到htacces中,但不确定如何 RewriteRule ^rss\/([^\.]+).xml$ fileadmin/rss/$1.xml [QSA,L] #RewriteRule ^fileadmin\/(.

在typo3 htacces中,通过重写规则完成所有重定向。*index.php[QSA], 但我需要使用php应用程序创建PromoCode foldier,并在adres www.domainname.com/PromoCode下创建自己的index.php。所以我需要将异常添加到htacces中,但不确定如何

RewriteRule ^rss\/([^\.]+).xml$ fileadmin/rss/$1.xml    [QSA,L]
#RewriteRule ^fileadmin\/(.*)$  fileadmin/$1    [QSA,L]

# SPECIAL
RewriteRule ^ua-ru/links807835.php fileadmin/links807835.php [QSA,L]


# PAGING
RewriteRule ^(.*)(?!order\/.*)\/order\/([^-]+)-([^\/]+)(.*)$    $1$4?pg_order=$2&pg_by=$3   [QSA,L]
RewriteRule ^(.*)(?!order\/.*)\/order\/([^\/]+)(.*)$    $1$3?pg_order=$2    [QSA,L]
RewriteRule ^(.*)(?!page\/.*)\/page\/([^\/]+)(.*)$  $1$3?pg_page=$2 [QSA,L]
RewriteRule ^(.*)(?!size\/.*)\/size\/([^\/]+)(.*)$  $1$3?pg_size=$2 [QSA,L]

# FAQ
RewriteRule ^(.*)(?!faq\/.*)\/faq\/([^\/]+)(.*)$    $1$3?faq=$2 [QSA,L]

# GALLERY
RewriteRule ^(.*)(?!gallery\/.*)\/gallery\/([^\/]+)(.*)$    $1$3?gallery=$2 [QSA,L]

# ARTICLE
RewriteRule ^(.*)(?!article\/.*)\/article\/([^\/]+)(.*)$    $1$3?article=$2 [QSA,L]

# PRODUCT
RewriteRule ^(.*)(?!product\/.*)\/product\/([^\/]+)(.*)$    $1$3?product=$2 [QSA,L]

# EVENT
RewriteRule ^(.*)(?!event\/.*)\/event\/([^\/]+)(.*)$    $1$3?event=$2   [QSA,L]

# MATERIAL
RewriteRule ^(.*)(?!material\/.*)\/material\/([^\/]+)(.*)$  $1$3?material=$2    [QSA,L]

# CATEGORY
RewriteRule ^(.*)(?!category\/.*)\/category([^\/]+)([^\/]+)(.*)$    $1$3?category=$2    [QSA,L]

# LANGUAGE
RewriteRule ^([^\/]*)\/$    $1?id=$1    [QSA]
RewriteRule ^([^\/]*)$ $1?id=$1 [QSA]
#RewriteRule ^([^\/]*)[\/]{0,1}(.*)$    $2?lang=$1  [QSA]
RewriteRule ^([^\/]*)[\/]{0,1}(.*)$  ?lang=$1 [QSA]

# PAGE
RewriteRule ^[\/]{0,1}([^\/]+)[\/]([^\/]+)[\/]([^\/]+)[\/]{0,1}(.*)$    ?id=$3&pid1=$2&pid2=$1  [QSA]
RewriteRule ^[\/]{0,1}([^\/]+)[\/]([^\/]+)[\/]{0,1}(.*)$    ?id=$2&pid1=$1  [QSA]
RewriteRule ^[\/]{0,1}([^\/]+)[\/]{0,1}(.*)$    ?id=$1  [QSA]

# FINISH
RewriteCond %{REQUEST_URI} !^/PromoCode/
RewriteRule .* index.php [QSA]

RewriteRule.*index.php
行之前,添加以下条件:

RewriteCond %{REQUEST_URI} !^/promocode/

创建
/promocode/
文件夹,无论您希望对其进行例外处理的文件夹名是什么。

@user3223050如果您从一开始就发布了整个htaccess文件,这会有所帮助。如果有那么复杂,请尝试在
PromoCode
文件夹中创建一个新的htaccess文件,其中只有一行:
RewriteEngine On