我想
www.example.com/tops/articles/first_article
重定向地址到地址
www.example.com/tops/test1.php?name = first_article.htaccess的目录重定向
也
www.example.com/tops/galleries/first_gallery
重定向地址到地址
www.example.com/tops/test2.php?name=first_gallery
和所有其他地址一样
www.example.com/tops/first_page
到
www.example。 com/tops/page.php?name = first_page
下面的htaccess文件给了我一个重定向循环。
RewriteEngine on
Options +FollowSymLinks
RewriteRule ^/tops/articles/(.+)$ /tops/test1.php?name=$1 [L]
RewriteRule ^/tops/galleries/(.+)$ /tops/test2.php?name=$1 [L]
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule (.*)$ ./page.php?name=$1
Doe的任何人有任何想法为什么是这样的? 我在做什么错?
在此先感谢。
几乎所有的东西。 –
请告诉我什么是缺失的,所以我会知道下一次。 –
特别是模式'/ tops' –