WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] .htaccess redirect? (8 posts)

  1. Hi,

    When I originally setup my website, I added a few links to a community website I was also running at the time.

    I have since removed the community website, and it is no longer operable.

    However, I receive about 2,000 crawl errors a day in Google Webmaster Tools to various links in the community directory. All links report as error 404's.

    I've removed EVERY link in my site... as well as ALL sitemaps which have had that link. I think it's coming from an old attracta sitemap I've asked them to remove... but nothing yet.

    Can I set up an .htaccess rule which will redirect anyone attempting to accesss www.mysite.com/community, and any links below that directory, to my top level domain page?

    Thanks.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. esmi... my savior!

    Thank you. But what if I would like to redirect an entire directory and all subdirectories of that directory?

    For example, I would like to redirect http://www.mysite.com/community and everything below that directory to http://www/mysite.com.

    Would this work?

    Redirect 301 /community http://www.mysite.com
  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Try:
    Redirect 301 /community http://www/mysite.com.

  5. This worked:

    Redirect 301 /community http://www.joshlobe.com

    esmi... I owe you a drink!! Thank you.

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    No problem :-)

  7. jmilez
    Member
    Posted 1 year ago #

    Found this thread after finding out my redirects stopped working. I use the htaccess redirects for shortcuts to my social pages. I thought the cache plugin might have interfered, but I had installed the Redirection plugin for redirecting an old post and I think that caused the problem. So I just moved my htaccess redirects to the plugin and all works again and don't have to mess with htaccess anymore. Just in case anyone else uses the Redirection plugin and finds this thread...

  8. cssbutton
    Member
    Posted 1 year ago #

    you can use a good htaccess redirect here http://www.htaccessredirect301.com to do a clean 301 redirects of all your pages

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.