额外尾随斜线国防部重写

问题描述:

我得到的指示从额外尾随斜线国防部重写

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 

摆脱

RewriteBase/

默认情况下,目录中的.htaccess文件将具有/的基路径,因此通过添加另一个正斜杠,您的整体重写基址将是//