Thread: .htaccess

    #1
  1. No Profile Picture
    Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Feb 2009
    Posts
    28
    Rep Power
    0

    .htaccess


    Hello,

    Quick question.

    We are launching our new site soon and I'm doing the 301 redirects.

    The indexed directory currently is www.xxx/blog/

    The new blog is www.xxx/blog

    Without the "/". Does this matter. When I type in the old blog directory on the new site (still on test server), it goes to the new address without the "/" automatically.

    Just don't want to lose any ranking, we were just bumped to a 4 page rank, and don't want to lose that.

    Thanks
  2. #2
  3. Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jul 2012
    Location
    California
    Posts
    80
    Rep Power
    52
    i would use a canonical tag on the pages to add the "/" just to be safe
  4. #3
  5. No Profile Picture
    Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Feb 2009
    Posts
    28
    Rep Power
    0

    Just on...


    Originally Posted by ozzyr
    i would use a canonical tag on the pages to add the "/" just to be safe
    The main blog page?

    It's a wordpress blog.

    Thanks
  6. #4
  7. No Profile Picture
    Founder, SEOChat.com :)
    SEO Chat Skiller (1500 - 1999 posts)

    Join Date
    Dec 2002
    Location
    Boca Raton, FL
    Posts
    1,787
    Rep Power
    361
    Try this:

    Code:
    RewriteEngine On
    
    RewriteCond %{REQUEST_URI} ^/blog/$ [OR]
    RewriteCond %{REQUEST_URI} ^/blog/index\.(php|htm)
    RewriteRule ^.*$ http://www.SITE.com/blog [R=301,L]
    This will 301 redirect /blog/, /blog/index.php, /blog/index.htm and /blog/index.html to /blog
    Darrin J. Ward, the Founder of SEO Chat (this site
    FREE CHAT BOX FOR YOUR SITE OR BLOG
  8. #5
  9. Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jul 2012
    Location
    California
    Posts
    80
    Rep Power
    52
    and after you've made those changes to your .htaccess file, make sure to get an SEO plugin for your site to help it run smoothly afterwards

    http://wordpress.org/extend/plugins/search.php?q=seo
  10. #6
  11. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Smile .htaccess


    .htaccess is very important for internet users.
  12. #7
  13. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Oct 2012
    Posts
    8
    Rep Power
    0

    Smile Seo


    SEO is very significant for the bloggers. If you want to bring your website at the first page of Google search, SEO is must.
  14. #8
  15. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Oct 2012
    Posts
    8
    Rep Power
    0
    In WordPress blog, click on "visit site" and that page will come, it is your main page.

Similar Threads

  1. .htaccess files
    By beachbum in forum SEO Help (General Chat)
    Replies: 42
    Last Post: Apr 12th, 2009, 12:21 PM
  2. .htaccess tips
    By Aleister in forum Search Engine Optimization
    Replies: 35
    Last Post: Mar 27th, 2008, 01:29 AM
  3. 301 redirect and .htaccess file location questions
    By lilyfok in forum Google Optimization
    Replies: 2
    Last Post: Jan 16th, 2006, 04:55 AM
  4. 301 Redirects and .htaccess
    By Bazza UK in forum SEO Help (General Chat)
    Replies: 0
    Last Post: Dec 12th, 2005, 09:28 AM
  5. .htaccess and mod_rewrite questions
    By jngabi in forum Web Design, Coding and Programming
    Replies: 24
    Last Post: Nov 1st, 2004, 07:19 AM

IMN logo majestic logo threadwatch logo seochat tools logo