301 redirect a set of pages to one landing page/URL?
-
I'm planning to redirect the following pages to one new URL/landing page:
Old URLs:
http://www.olddomain.com/folder/page/1
http://www.olddomain.com/folder/page/2
http://www.olddomain.com/folder/page/3
http://www.olddomain.com/folder/page/4
http://www.olddomain.com/folder/page/5
http://www.olddomain.com/folder/page/6
New URL:
http://www.newdomain.com/new-folder/new-page
Code in .htaccess that I will be using:
RedirectMatch 301 /folder/page/(.*) http://www.newdomain.com/new-folder/new-page
Let me know if this is correct.
Thanks!
-
Hi Devanur,
I just sent you a private message.
Thanks a lot man!
-
Hi guys,
The redirection rules are working well but the landing pages are showing special parameters like the following:
http://www.olddomain.com/folder/page/1 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=1
http://www.olddomain.com/folder/page/2 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=2
http://www.olddomain.com/folder/page/3 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=3
http://www.olddomain.com/folder/page/4 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=4
http://www.olddomain.com/folder/page/5 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=5
http://www.olddomain.com/folder/page/6 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=6
http://www.olddomain.com/folder TO http://www.newdomain/new-folder?cmd=divisionsMain&group=2&country=1&category=1
Thanks in advance!
-
Hi guys,
Sorry for the late response. We will now test the mentioned redirect rule. I'll give you an update after.
Thanks!
-
I responded to one of his recent queries and then he pointed me to this question that he posted long time back that has been lying without being answered.
-
As long as you make sure this is placed in the correct tags, it should work fine.
This question was asked nearly a month ago - how did it turn out?
-
Hi friend,
Yes, the code you mentioned should work the way you expect without any issues.
Best,
Devanur Rafi
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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
-
Spam Score & Redirecting Inbound Links
Hi, I recently downloaded a spreadsheet of inbound links to my client sites and am trying to 301 redirect the ones that are formatted incorrectly or just bad links in general (they all link to the site domain, but they used to have differently formatted urls on their old site, or the link URL in general has strange stuff on it). My question is, should I even bother redirecting these links if their spam score is a little high (i.e. 20-40%)? it already links to the existing domain, just with a differently formatted URL. I just want to make sure it goes to a valid URL on the site, but I don't want to redirect to a valid URL if it's going to harm the client's SEO. Also not sure what to do about the links with the --% spam score. I really appreciate any input as I don't have a lot of experience with how to deal with spammy links.
White Hat / Black Hat SEO | | AliMac260 -
How Important is it to Use Keywords in the URL
I wanted to know how important this measure is on rankings. For example if I have pages named "chair.html" or "sofa.html" and I wanted to rank for the term seagrass chair or rattan sofa.. Should I start creating new pages with the targeted keywords "seagrass-chair.html" and just copy everything from the old page to the new and setup the 301 redirects?? Will this hurt my SEO rankings in the short term? I have over 40 pages I would have to rename and redirect if doing so would really help in the long run. Appreciate your input.
White Hat / Black Hat SEO | | wickerparadise0 -
How long we can keep 302 redirection for a webpage url?
Hi Friends, I have a webpage featuring a product. I have created a new domain featuring the same product and the page is under construction. I am planning to do 302 redirection from the new domain to the existing domain for the time being. How long can I keep the 302 redirection from the new domain to existing domain? Is there any fixed time period/ duration that we can keep the 302 redirection for a webpage? I am planning to make few more pages (privacy policy, about us, etc) from the new domain 302 redirected to the existing domain. Is it possible? If so, how long can I keep the same? May I know which redirect is safe to use in this case, 302 or 301 redirect?
White Hat / Black Hat SEO | | zco_seo0 -
Help with E-Commerce Product Pages
Hi, I need to find the best way to put my products on our e-commerce website. I have researched and researched but I thought I'd gather a range of ideas in here. Basically I have the following fields: Product Title
White Hat / Black Hat SEO | | YNWA
Product Description
Product Short Description SEO Title
Focus Keyword(s) (this is a feature of our CMS)
Meta Description The problem we have is we have a lot of duplicate content eg. 10 Armani Polos but then each one will be a different colour (but the model number is the same). I don't want to miss out on rankings because of this. What would you say is the best way to do this? My idea is this: Product Title: Armani Jeans Polo Shirt Blue
Product Description: Armani Jeans Polo Shirt in Blue Made from 100% cotton Armani Jeans Polo with Short Sleeves, Pique Collar and Button Up Collar. Designer Boutique Menswear are official stockists of Armani Jeans Polos.
Short Description: Blue Armani Jeans Polo SEO Title: Armani Jeans Polo Shirt Blue MA001 | Designer Boutique Menswear
Focus Keywords: Armani Jeans Polo Shirt
Meta Description: Blue Armani Jeans Polo Shirt. Made from 100% cotton. Designer Boutique Menswear are official stockists of Armani Polos. What are peoples thoughts on this? I would then run the same format across each of the different colours. Another question is on the product title and seo title, should these be exactly the same? And does it matter if I put the colour at the beginning or end of the title? Any help would be great.0 -
Copied Content/ Copied Website/
Hello guys, I was checking my product descriptions and I found out that there is a website that is using my descriptions word by word, also they use company name, product images, they have a link that sends you to my site, contact form.. I tried to purchase something and the order came through our email, but i made an inquire and it didn't come through. Also they have a sub-folder with my company name. Also they have url's with my company name, and this isn't right is it? I am confused and honestly I don't know what to do, we don't take part to any affiliation program or anything like that and we don't ship out of Europe. This is a Chinese website. Just for curiosity, I noticed that one of our competitors is there as well, and it does seem weird. Here is the links: www.everychina . com/company/repsole_limited-hz1405d06.html
White Hat / Black Hat SEO | | PremioOscar0 -
How to Handle Sketchy Inbound Links to Forum Profile Pages
Hey Everyone, we recently discovered that one of our craft-related websites has a bunch of spam profiles with very sketchy backlink profiles. I just discovered this by looking at the Top Pages report in OpenSiteExplorer.org for our site, and noticed that a good chunk of our top pages are viagra/levitra/etc. type forum profile pages with loads of backlinks from sketchy websites (porn sites, sketchy link farms, etc.). So, some spambot has been building profiles on our site and then building backlinks to those profiles. Now, my question is...we can delete all these profiles, but how should we handle all of these sketchy inbound links? If all of the spam forum profile pages produce true 404 Error pages (when we delete them), will that evaporate the link equity? Or, could we still get penalized by Google? Do we need to use the Link Disavow tool? Also note that these forum profile pages have all been set to "noindex,nofollow" months ago. Not sure how that affects things. This is going to be a time waster for me, but I want to ensure that we don't get penalized. Thanks for your advice!
White Hat / Black Hat SEO | | M_D_Golden_Peak0 -
One of my outbound links website go hit by panda!
Hi mozzers, today I received a message from one of my blogger partners announcing me that he got hit by panda. 2 weeks ago I had him placing 2 anchors one in our main domain and a second one on our subdomain. I know panda focuses essentially on dups and I have paid attention to our webmaster tools to make sure we haven t got any messages Which we re good with. What do you guys suggest, will this affect us at some point or we re good? also in case that we re good will panda affect the blogger's authority therefore ours? if yes I should probably remove them, right? Thanks
White Hat / Black Hat SEO | | Ideas-Money-Art0 -
My ranking dropped 3 pages on 18 november 2012
Hi There my site ranking dropped suddenly today for my main keywords such as security companies in london and security services in london from first page to 4th-5th page. these keywords were ranked on homepage http://www.armstrongsecurity.co.uk/ other keywords from some internal pages, such as this one http://www.armstrongsecurity.co.uk/security-services/event-security-london.html theygot hit slightly and went couple of listings down the road for event security london, event security companies london as well. same slight hitting happened on this page for main keywords http://www.armstrongsecurity.co.uk/bodyguard-for-hire-london.html can anyone help me, how to get the rankings back? my site authority is around 60 which is far better than most sites ranking higher than me now. these are some problems that i understand so far. keyword rich anchor text link profile for my main keywords over optimised pages let me know if anything you might find suspicious on my site that i can fix either on site or in my link profile. looking forward to your help. thanks gill
White Hat / Black Hat SEO | | spciuk0