Redirects 301
-
Hello,
I need to reedirect a URL of a page that I have in my site (http://digitaldiscovery.com.pt/servicos-de-marketing-digital/publicidade-online/) to a new URL with SEO porpuses. Whats the best way to this?
I use Wordpress btw.
Tks in advance!
PP
-
Awesome guys. I think I can manage from here. Tks alot for sharing the knowledge
-
Hi Pedro,
I agree with the replies so far. 301 is the best for SEO.
If you already have a .htaccess file then just put one more line into it, similar to the following
redirect 301 ./my-page.html http://www.mysite.com.au/my-new-page.html
If you don't then just make a plain text file and name it .htaccess, put this code into it, and then ftp it to the root of your site.
It will all just work like magic if you have an Apache server or similar. If you have a windows server or something else, then you may in for some more legwork to get the redirect to work.
This is the best approach for non cms websites. For websites like Wordpress you have many more options available through plugins... Yay...!
HTH
-
An htaccess file is one way to do it as a previous response suggested, but there are some easier options. If you're already using an SEO plugin on your Wordpress site, check to see if it has a 301 redirect field and then go enter the new url you'd like it redirected to on the post or page. If you don't have an SEO plugin or one with that option you can easily install a new redirect plugin. I've used "Quick Page/Post Redirect DEV" and I'd recommend it. This also allows you to copy and paste the new url in a field on the post or page and choose the type of redirect you'd like. Make sure to do a 301 if this is a permanent change.
-
The best way to do this is by adjusting the .htaccess file. The htaccess file directs traffic to the correct page very quickly and efficiently. (An alternative would be to go through WordPress but typically this isn't an efficient alternative.)
The htaccess file is located in the root directory - /httpdocs, /public_html, etc.
At the very end of the htaccess file, add a new line and on that line, you will want to use a line like this. Update the URLs to match whatever you want to redirect from and to.
redirect 301 /servicos-de-marketing-digital/publicidade-online/ http://digitaldiscovery.com.pt/new-page-url-here
The first URL (after redirect 301) is the old URL you are redirecting from. This needs to be a relative URL back to the root directory of the website. The second URL (after the space) is the URL to the new page you are redirecting to. This needs to be an absolute URL (even if it is on the same site).
A couple words of warning on the htaccess file:
First, make sure your URLs do not have any special characters and if they do, make sure you escape them. (Space becomes %20, for example.)
Second, before making any changes to your htaccess file definitely create a backup of what the current htaccess file is. If you make a mistake in the htaccess file it can return an internal server error for your entire site. So, be prepared to roll back if something doesn't go quite right!
There is a good resource on htaccess 301 redirects here. It also talks about a meta refresh option but I'd avoid that as it isn't as good for search engine purposes.
http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Is there anyway to automatically find complete urls for 301 redirects?
Hello all, I'm working on a large site that is being prepared for a migration. After scraping on screaming frog, WMT, and deepcrawl, and deduping I have a list of 404 pages that need redirected. Many of these URLs are just incomplete URLs. For example the incomplete URL would be: "https://mza.bundledseo.com/beginners-guide-to" when it should be "https://mza.bundledseo.com/beginners-guide-to-seo" I have been finding the correct page manually searching google. With hundreds more to go, I am looking for a way the would be a little less laborious. Thanks! https://mza.bundledseo.com/beginners-guide-to-seo
Technical SEO | | AdamBohr0 -
Migration to New Domain - 301 Redirect Questions
My client is migrating their site to a new domain. I just did a big redesign, including URL structure change, and 301s from old URLs to new URLs. Now they want a new name, so we're moving forward with a new domain name. However, we're going to keep the site on the current domain while we ease customers into the new name. During that time, I'm going to be building links to the new domain name and 301 Redirecting that new one to the current domain name. Then, once we migrate the site to the new domain name, I'm then going to redirect the current domain name to the new domain name. So, my question(s) is/are: Is the above process the best way to use 301 redirects to to build links to the new domain while we transition everything? Should I (or can I) do 3 redirects from the oldest URLs, to the current URLs then to the new URLs? General question... I can't seem to find this anywhere online, but what is the best practice for what order URLs should be in in the htaccess file? Thanks!
Technical SEO | | Kenny-King0 -
Simple 301 redirect a subfolder to another subfolder
Hi, I have a number of sub-folders that I have to move, each of which contains a number of files. subfolder A has files a, b & c subfolder B has files d, e & f
Technical SEO | | aactive
subfolder C has files g, h & i A, B & C folders need to be X, Y & Z Will the following work? RewriteRule ^subfolder-A/* http://www.domain.com/subfolder-X/ [R=301,L]
RewriteRule ^subfolder-B/* http://www.domain.com/subfolder-Y/ [R=301,L]
RewriteRule ^subfolder-C/* http://www.domain.com/subfolder-Z/ [R=301,L] will this result in visitors to http://www.domain.com/subfolder-B/f.html being redirected to http://www.domain.com/subfolder-Y/f.html? All on the same domain. in reality we are talking hundreds of sub folders and thousands of files so we don't want to have to reference every file individually in the htaccess. Thanks0 -
Best practice for eCommerce site migration, should I 301 redirect or match URLs on new site
Hi Guys, I have been struggling with this one for quite some time. I am no SEO expert like many of you, rather just a small business owner trying to do the right thing, so forgive me if I say something that makes no sense 🙂 I am moving our eCommerce store from one platform to another, in the process the store is getting a massive face lift. The part I am struggling with is whether I should keep my existing URL structure in place or use 301 redirects to create a cleaner looking URLs. Currently the URLs are a little long and I would love to move to a /category/product_name type format. Of course the goal is not to lose ranking in the process, I rank pretty well for several competitive phrases and do not want to create a negative impact. How would you guys handle this? Thanks, Dinesh
Technical SEO | | MyFairyTaleBooks0 -
301 redirect of one site version to new domain
Hello all. I today have domain.com that has 10 language versions and the structure is by folders: domain.com/ru/
Technical SEO | | Gregos
domain.com/pl/ etc. Soon I plan redesign,new CMS and I plan to register 9 new ccTLDs. My question is: Can I 301 redirect domain.com/ru/ to domain.ru without having some bad effect on domain.com? I mean,the main domain,com is not going to be affected by permanent redirect of one url to completly new domain right?0 -
Moving articles to new site, can't 301 redirect because of panda
I have a site that is high quality, but was hit by penguin and perhaps panda. I want to remove some of the articles from my old site and put them on my new site. I know I can't 301 redirect them because I will be passing on the bad google vibes. So instead, I was thinking of redirecting the old articles to a page on the old site which explains that the article is moved over to the new site. I assume that's okay? I'm wondering how long I should wait between the time I take them down from the old site to the time I repost them on the new site. Do I need to wait for Google to de-index them in order to not be considered duplicate content/syndication? We'll probably reword them a bit, too - we really want to avoid panda. Thanks!
Technical SEO | | philray
Phil0 -
Not sure which URL to use for 301 redirect
A client has new website design completed by another developer, was launched in April of this year. No 301 redirect was set up so duplicate content is an issue. Client has had a website with same domain name for about 10 years, but has not had any SEO work completed before or since his new site design. For non-www there are 6 referring links - 1 considered to have authority, for www there are also 6 but 3 considered to have authority. More links seem to coming from www than non-www. But for one of the clients keywords they are ranked #1 for their area and that links to their non-www address. And even though no redirects set up by developer, non-www has had far more visits according to Google Analytics. So many basics that still need to be done for site: no meta-descriptions on any page, H1 and page titles could use keywords, call to action moved above fold, etc. Considering this is a new site, and new SEO work and many more inbound links needed, does it matter which address I redirect to? _Cindy Barnard
Technical SEO | | CeCeBar0 -
301 Redirect NOT Working as Expected - HELP!
Hi! I just launched our newly coded site and just realized the installed 301 is NOT working. The URL string is the same EXCEPT for the removal of /shop/. Here is the code in .htaccess: ############################################ enable rewrites Options +FollowSymLinks RewriteEngine on #RedirectMatch 301 ^/shop?/$ http://hiphound.com/ RedirectMatch 301 ^/shop?/$ http://hiphound.com ########################################### When I go to Google and click on an old link I get a 404. No bueno!! Here is an example: http://hiphound.com/shop/rubit-dog-tag-clip I thought (and was told) that the installed 301 would send this page to: http://hiphound.com/rubit-dog-tag-clip It's not. Please HELP!! 🙂 What am I doing wrong??? Lynn
Technical SEO | | hiphound0