重写规则不起作用给出Not Found请求的URL .htaccess

时间:2016-11-28 07:07:57

标签: php apache .htaccess url-rewriting

请检查下面的.htaccess代码/ contact,/ services,/ galleria,/ aboutus not working不知道原因,其他规则的工作方式如/ sufi等...请小心点亮

#TEST。

RewriteEngine On
#RewriteBase /


#RewriteCond %{REQUEST_URI} !index.php
#RewriteRule .* index.php?ua=%{HTTP_USER_AGENT}&https=%{HTTPS} [L]

RewriteRule ^content/profile/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)$ ?ref=content&type=profile&id=$1&title=$2 [QSA,L]
RewriteRule ^content/list/([0-9a-zA-Z]+)/([0-9a-zA-Z]+)$ ?row=$1&s$2 [QSA,L]


RewriteRule ^contactus/$ ?ref=contactus 
RewriteRule ^aboutus/$ ?ref=aboutus 
RewriteRule ^services/$ ?ref=services 


RewriteRule ^code33/$ ?ref=code33 
RewriteRule ^solar/$ ?ref=solar 
RewriteRule ^sufi/$ ?ref=sufi 
RewriteRule ^fast/$ ?ref=fast 

RewriteRule ^greet/$ ?ref=greet
RewriteRule ^deviser/$ ?ref=deviser
RewriteRule ^printing/$ ?ref=printinggate
RewriteRule ^wreet/$ ?ref=wreet

#RewriteRule ^galleria-online-store-peshawar-pakistan/$ ?ref=store
RewriteRule ^galleria/$ ?ref=store

RewriteRule ^bollywood-movies/$ ?ref=cinema
RewriteRule ^bollywood/$ ?ref=cinema

RewriteRule ^ulama/$ ?ref=ulama
RewriteRule ^visa-house/$ ?ref=visahouse
#RewriteRule ^visa-house-visit-business-student-visa-work-permit/$ ?ref=visahouse

#RewriteRule ^mobile-android-apps/$ ?ref=mobilola
RewriteRule ^mobilola/$ ?ref=mobilola

** / contact,/ services,/ galleria,/ aboutus not working不知道为什么,其他规则就像/ sufi等工作......请小心点亮**

0 个答案:

没有答案