开发者

Path issue in wordpress blog

We are having some issue with our relative path in wordpress. Earlier our application was like http://www.skill-guru.com/skill . So if we type the blog address as http://www.skill-guru.com/blog it would add a / at end and open it as http://www.skill-guru.com/blog/ Now our application opens as root in domain http://www.skill-guru.com. Our blog is opening as http://www.skill-guru.com/blog/ but not as http://www.skill-guru.com/blog. I am not able to understand the r开发者_JAVA百科eason. because of this issue , search is also not working. Can anyone please help me understand what has changed and how it can be fixed ?


I'm not sure about the underlying cause, but while you figure that out you may just want to redirect "blog" to "blog/" in your .htaccess file. I think this will do it...

RewriteCond %{REQUEST_URI} ^.*/blog$
RewriteRule ^(.+)$ $1/ [R=301,L]

I'm assuming that somewhere else in the .htaccess you have...

RewriteEngine On
RewriteBase / 

In fact, you might find that in the process of changing you site someone nuked the existing .htaccess.


If I visit http://www.skill-guru.com/blog, I get the error:

HTTP Status 404 - /blog

type Status report

message /blog

description The requested resource (/blog) is not available. Apache Tomcat/6.0.16

This implies that there might be url-rewriting in place or server configuration does not allow you to strip the trailing backslash, you should consult with server support theam.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜