www.webdeveloper.com
Results 1 to 4 of 4

Thread: 301 Redirect for Entire Directory

  1. #1
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    191

    301 Redirect for Entire Directory

    I recently changed my blog address. How can I return a 301 error for everything under the http://www.migthegreek.com/wordpress/ directory to the new directory of http://www.migthegreek.com/scraps/ and will a 301 work for this, or is it only single pages?

  2. #2
    Join Date
    May 2004
    Location
    FL
    Posts
    3,447
    Use this in the .htaccess file:
    Code:
    redirect 301 /wordpress/ http://www.migthegreek.com/scraps/
    Then, use this URL to make sure it works.
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill

  3. #3
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    191
    Great, thanks for that and the link.

  4. #4
    Join Date
    May 2004
    Location
    FL
    Posts
    3,447
    Glad I could help.
    Lee

    ""Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."" -- Sir Winston Churchill

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles