www.webdeveloper.com
Results 1 to 4 of 4

Thread: 301 Redirect for Entire Directory

Hybrid View

  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,453
    Use this in the .htaccess file:
    Code:
    redirect 301 /wordpress/ http://www.migthegreek.com/scraps/
    Then, use this URL to make sure it works.

  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,453
    Glad I could help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 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