Support » Everything else WordPress » .htaccess redirect?

  • Resolved Josh

    (@josh401)


    Moderator and Editor Customizer

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi

    (@esmi)

    Forum Moderator

    Josh

    (@josh401)

    Moderator and Editor Customizer

    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
    esmi

    (@esmi)

    Forum Moderator

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

    Josh

    (@josh401)

    Moderator and Editor Customizer

    This worked:

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

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

    esmi

    (@esmi)

    Forum Moderator

    No problem 🙂

    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…

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘.htaccess redirect?’ is closed to new replies.