域错误/ www之前的htaccess正斜杠

时间:2015-07-30 16:47:15

标签: .htaccess rewrite url-redirection

我的网站网址结构在搜索结果中显示为" /www.domain.com" (在www之前使用正斜杠)

我认为问题出在htaccess文件中。有谁知道修复? htaccess代码如下。非常感谢。

RewriteEngine On 
RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^(.*)\.html$ %2$1.php [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^kentuckycartitleloans.com 
RewriteRule (.*) http://www.kentuckycartitleloans.com%{REQUEST_URI} [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^.*about.php$ %2contact.php [QSA,L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^.*online-application.php$ %2apply.php [QSA,L,R=301]

0 个答案:

没有答案