2012-07-15 66 views
0

我得到的指示從額外尾隨斜線國防部重寫

http://www.example.com/index我的網站http://www.example.com//index

額外的尾部斜槓的問題,這裏是我的.htaccess內容

DirectoryIndex index.php 

    RewriteEngine On 
    RewriteBase/
    # Apply rule to all web pages eg html, php, htm 
    # RewriteRule !\.(swf|zip|tar|tar|pdf|doc|txt|js|ico|gif|jpg|png|css|php)$ index.php [NC,L] 
    RewriteRule captcha.jpg com/actions/image.php 
    RewriteRule !(\.) index.php [NC,L] 


#deny access to the .ht* files 

    order allow,deny 
    deny from all 


#deny access to any *.ini files 

    order allow,deny 
    deny from all 


#deny access to any *.log files 

    order allow,deny 
    deny from all 

回答

0

擺脫

RewriteBase/

默認情況下,目錄中的.htaccess文件將具有/的基路徑,因此通過添加另一個正斜槓,您的整體重寫基址將是//