开发者

Please help me find out what's wrong with this .htaccess

.htaccess

<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ ./rewrite.php?p=$1&%{QUERY_STRING} [L]   
</IfModule>

rewrite.php

<?php 
print_R($_GET);die;
?>

This works properly on my local comp and on many other servers. But on a godaddy server there is an issue. URL like this gets successfully processed

site.com/search/action/browse
Array ( [p] => search/action/browse ) 

But this URL has a problem

site.com/index/country/United-States
Array ( [p] => missing.html ) 

There is no ind开发者_Python百科ex/ directory in the site root. There is an index.php file though. I tried to go through godaddy control panel but didn't find anything related to missing.html. Please let me know your thoughts because I am running out of ideas.


LazyOne: you are a legend: Ive had this issue for months and the wonderful "Options -MultiViews" saved me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜