Mobile app version of vmapp.org
Login or Join
Lengel546

: Setting up Redirects for old pages I have some old pages that for a website that are showing up in google search results. Until google reindexes the site, I want to redirect those urls to

@Lengel546

Posted in: #301Redirect #Godaddy #Redirects

I have some old pages that for a website that are showing up in google search results. Until google reindexes the site, I want to redirect those urls to the new homepage.

Yet, when I go through GoDaddys redirect setup, I get a warning that the site and url must be on this account.

Example:

Old URL
www.example.com/oldpage.html

This url/page is no longer on the server. So it should redirect to
www.example.com/new-page.html

But as I said, GoDaddy throws an error. Any ideas? Any help is appreciated.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Lengel546

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie184

I don't know about GoDaddy's error, other than maybe it is expecting example.com rather than example.com (although I doubt it)?! You don't actually need to specify the host if redirecting on the same site?

But anyway, this is easy to do in your root .htaccess file using mod_alias:

Redirect 301 /oldpage.html /new-page.html


(This assumes Apache 2.2.6+ for the ability to specify a root-relative, rather than absolute URL, as the target.)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme