移动网站URL的SEO友好的重写方法从补充指南向根父母文件夹
您恰好设定了您的站点、blog例如WordPress, Drupal、LiveJournal或者美满的管理系统例如Joomba和Mambo在URL链接例如http://www.domain.com/mylovelysite,并且有正派交通网站。 现在整顿锻炼,您决定移动站点从补充指南向父母文件夹,适当地在站点的根地点改为。 移动站点向另一个文件夹或根文件夹将打破所有链接和backlinks参考到您的网站。 如果这些残破的链接没有适当地被处理并且没有被改方向,将有很多404页没被发现的错误,潜在地驾驶访客,或者在最坏,影响并且降低搜索引擎等第位置(SERP)。
最佳的方式处理站点的URL的变动由于目录地点的运动是通过使用mod_rewrite模块提供的改变方向特点在亚帕基印第安人HTTPD网络服务器。 默认情况下多数WEB主机使用Apache Web Server支持mod_rewrite改方向,并且可能容易地实施这个把戏。 您将需要使能和起动mod_rewrite模块。
从补充指南或次级文件夹要改方向到根目录,增加以下行文本往位于补充指南的.htaccess文件上面改所有请求方向入那个文件夹将被改方向到新的地点(即。 根)适当地。 如果.htaccess文件不存在,创造一。
<IfModule mod_rewrite.c>
RewriteEngine
RewriteBase/
RewriteRule ^mylovelysite/(。*) $/$1 [R=301、北卡罗来纳, L]
</IfModule>
替换 mylovelysite 在上面线以目录名称在您的网站的URL。 这些在.htaccess排行改要求方向/mylovelysite补充指南对根目录由剥离的“mylovelysite/”在URL外面。 例如,到http://www.domain.com/mylovelysite/index.html的一次参观将得到改方向对http://www.domain.com/index.html,而不是退回404错误。 这为走向您的站点通过书签或喜爱的访客是有用的,或者那些通过未再爬行的查寻引擎在他们的查寻索引发现您的网页,再spidered和刷新与新的URL在初期天在移动以后。
然而,影响您的站点的搜索引擎等第的可能仍然运动意志。 重写统治上述永久改方向保证的确定301 PageRank或等第将通过在对新的URL为搜索引擎优化(SEO)。 直到新的站点结构得到充分地重新编目,也许临时地减少有机交通从查寻引擎。
重要 : This is a machine translated page which is provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.
Share and contribute or get technical support and help at My Digital Life Forums.
Related Articles
- Add Trailing Slash to the End of the URL with .htaccess Rewrite Rules
- Redirect or Rewrite to Remove Double or Multiple Slashes (//) in URL
- Headdress for Mac OS X Reviews
- Search Engine Spider Simulator SEO Tool
- How to Change Folder Thumbnail Preview Picture in Windows Vista Explorer
- Create Custom Webclips Easily for iPhone
- Change My Documents Folder Default Location Path in XP and Vista
- How to Move WordPress Blog to New Domain or Location
- How to Bookmark A Web Page Into Firefox 3 Bookmarks Folder When Clicking on Star on Location Bar
- WordPress Permalinks Does Not Work in xampp Setup

































May 8th, 2008 14:40
Yeah.. I’m thinking to move my blog from /blogs/ to the main root…ugh.. I’m just too scared to do it
June 19th, 2008 19:17
Thanks dude i tried and it worked fine for my site http://www.hurricanesoftwares.com but unfortunately it didn’t worked out for my other site. Wondering whats wrong.
Ash
August 21st, 2008 08:43
I’m kind of new to this but couldn’t you just do:
Redirect permanent /mylovelysite/ http://wwww.domain.com/