我正在尝试缩短我的链接以使它们变得漂亮,就像你在我的.htaccess代码中看到的一样,但由于某种原因它并没有听取它们。为什么不起作用?
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.migrus.mi-g\.us
RewriteRule ^(.*)$ $1?lang=rus [QSA,L]
RewriteRule ^home1/ home1/home1.php [NC]
RewriteRule ^home2/ home2/home2.php [NC]
RewriteRule ^home3/ home3/home3.php [NC]
RewriteRule ^certificates/([A-Za-z0-9-]+)/?$ certificates/certificate.php?cert_clean_url=$1 [QSA]
RewriteRule ^order-form/?$ order-form/order-form.php [QSA]
RewriteRule ^about/ about/about.php [NC]
RewriteRule ^site-map/?$ site-map/site-map.php [QSA]
RewriteRule ^contact/ contact/contact.php [NC]
RewriteRule ^blog/ blog/blog.php [NC]
RewriteRule ^blog-single/([A-Za-z0-9-]+)/?$ blog-single/blog-single.php?post_clean_url=$1 [QSA]
ErrorDocument 404 /404.php