允许圆点网址htaccess的? [英] Allow dot in url htaccess?
本文介绍了允许圆点网址htaccess的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
目前我得到未找到,而我使用。在URL中,例如:
曲目/ amxvb3BqbG9pbQ == / BG == /&放大器; ORDER_AMOUNT = 900.12
我
怎么能允许它使用。
我的code是:
重写规则^([^ / \。] +)/ $的index.php?网页= $ 1
?重写规则^([^ / \] +)/([^ / \] +)/ $的index.php 1页= $&放大器;第2页= $ 2
?重写规则^([^ / \] +)/([^ / \] +)/([^ / \ \] +)/ $的index.php 1页= $&放大器;第2页= $ 2及第3页= $ 3
重写规则^([^ / \。] +)/([^ / \。] +)/([^ / \。] +)/([^ / \。] +)/?$的index.php?页= $ 1安培;第2页= $ 2及3页= $ 3及4页= $ 4个
重写规则^([^ / \。] +)/([^ / \。] +)/([^ / \。] +)/([^ / \。] +)/([^ / \。] + ??)/ $ index.php页面= $ 1安培;第2页= $ 2及3页= $ 3及4页= $ 4和第5页= $ 5
解决方案
您的规则似乎在这里是错误的。替换所有规则与此code:
重写规则^([^ /] +)/([^ /] +)/([^ /] +)/([^ /] +)/([^ / ] +)/ $ /index.php?page=$1&page2=$2&page3=$3&page4=$4&page5=$5 [L,QSA,NC]
重写规则^([^ /] +)/([^ /] +)/([^ /] +)/([^ /] +)/?$ /index.php?page=$1&page2=$2& ;第3页= $ 3及4页= $ 4 L,QSA,NC]
重写规则^([^ /] +)/([^ /] +)/([^ /] +)/?$ /index.php?page=$1&page2=$2&page3=$3 [L,QSA ,NC]
重写规则^([^ /] +)/([^ /] +)/ $ /index.php?page=$1&page2=$2 [L,QSA,NC]
重写规则^([^ /] +)/ $ /index.php?page=$1 [L,QSA,NC]
和永远记住在为了最明确的把这些规则,以最普通的
Currently i got "Not found" while i am using "." in the URL, ex:
track/amxvb3BqbG9pbQ==/bg==/&order_amount=900.12
How can i allow it to use "."?
My code is:
RewriteRule ^([^/\.]+)/?$ index.php?page=$1
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?page=$1&page2=$2
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.\.]+)/?$ index.php?page=$1&page2=$2&page3=$3
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?page=$1&page2=$2&page3=$3&page4=$4
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ index.php?page=$1&page2=$2&page3=$3&page4=$4&page5=$5
解决方案
Your rules seem to be faulty here. Replace all of your rules with this code:
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ /index.php?page=$1&page2=$2&page3=$3&page4=$4&page5=$5 [L,QSA,NC]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ /index.php?page=$1&page2=$2&page3=$3&page4=$4 [L,QSA,NC]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/?$ /index.php?page=$1&page2=$2&page3=$3 [L,QSA,NC]
RewriteRule ^([^/]+)/([^/]+)/?$ /index.php?page=$1&page2=$2 [L,QSA,NC]
RewriteRule ^([^/]+)/?$ /index.php?page=$1 [L,QSA,NC]
And remember always keep these rules in the order of most specific to most generic.
这篇关于允许圆点网址htaccess的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文