Redirect help
-
I work for a company that has a domain that is something like www.neat-stuff.com but most people just use www.neatstuff.com without the dash. The redirect for the homepage works fine.
We recently launched a new site and if you use www.neat-stuff.com/category it redirects from the old site to the new site just fine.
However if you use www.neatstuff.com/category it does not properly redirect to www.neat-stuff.com/category.
How do I fix that?
-
That is exactly what we ended up doing thanks for your help.
After site launch a few months ago we lost a lot of organic traffic. Think this will bring some of it back?
-
As long as all your redirects are already working on the new site, you should be fine.
Look into the article I posted above. You essentially need to create a dummy non-www website in IIS that redirects to the new site. Right now you probably just have both the www and non-www versions declared in the host header of the new site.
-
Couple of things. We have 20k pages or so. Individually redirecting that much would be a pain.
After working with some people we now have it to where www.neat-stuff.com/235425243 category on the new site redirects to www.neat-stuff.com/category on the new site correctly. Same thing with neatstuff.com/4544564 to www.neatstuff.com/category on the new site. Shouldn't it be to one?
For the home page both www.neatstuff.com and www.neat-stuff.com work but there is no redirect. When I run a checker it says direct link. I think we are being shown as a duplicate site.
-
You'll have to put individual redirects in place if you want a specific old directory to redirect to a specific new directory. You can set those up in IIS on the www.neat-stuff.com website.
Then, if you append the $S$Q to the root of the neat-stuff.com (non-www) website, it should all work fine.
This writeup was helpful for me when I learned to set this up.
http://www.stronghost.co.uk/Redirecting-non-www-domain-to-www-domain/B23.htm
-
On our old site the categories were /52352524 and one of the things we did on the new site was actually give them names so it is now /category WIll that still work with that?
Wanted to add that most of our current redirects are done dynamically because we use asp.net so if you go to category 34234 it will take you to the correct /category through a 301 redirect.
-
in IIS for the redirecting website (neat-stuff.com) use this as the Redirect To url:
that'll redirect all directories and files as well.
-
It is hosted on a Windows server. Do you have a similar fix for IIS?
-
It is hosted on an IIS Windows server
-
Not tested and I'm very sleepy this Friday afternoon, but the below should fix it.
NB, this will also redirect any subdomains.
RewriteEngine On RewriteCond %{HTTP_HOST} ^neatstuff.com$ [OR] RewriteCond %{HTTP_HOST} ^www.neatstuff.com$
RewriteRule (.*)$ http://www.neat-stuff.com/$1 [R=301,L]EDIT
As per JP above, this is a solution using .htaccess. If you're on a Windows server you'll need to use IIS. The below might help
<match url="(.*)"></match>
<add input="{HTTP_HOST}" pattern="^neatstuff.com$"></add> <action type="Redirect" url="http://www.neat-stuff.com/{R:1}}" redirecttype="Permanent"></action>But again, I'm sleepy, so test things first
-
I think it would depend. Where is your website hosted? On what type of server? There would be a different method for achieving this via Cpanel on a linux server than there would via IIS on a Windows server. etc.
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
-
Ecommerce Migration - Criteria To Redirecting Products
Hi Guys, We have an e-commerce migration of a site moving from Magento to Shopify. The URL stuctures are changing so we will need redirects in place. They have over 50,000 skus/products. We need to setup redirect mapping - from old to new pages. Now setting up redirects for every single product seems overtop. Thus what is a good minimum requirement to determine if its worth redirecting a product page? We are thinking about going based on referring domains and google analytics data (for the last 12 months). If any product page has 1+ referring domain or more then 50 organic sessions during 12 months then setup a redirect otherwise no redirect required. Thoughts? Thankyou.
Intermediate & Advanced SEO | | brandonegroup0 -
After 301 redirect
hello i do after 301 redirect from old domain to new since 3 month ago my qa : should i replace the backlinks links to new doamin Or the he backlinks in the old link will works
Intermediate & Advanced SEO | | cristophare790 -
Setting up redirects from non wordpress
Hi, we are rebuilding our site which was built on WordPress. The old permalink structure was /%post_id%/%postname%/ The new site is a custom build (not Wordpress), however, we are using WordPress for blog posts. The URL structure is www.customewebsite/blog/ As the custom site is not WordPress, we do not know how to create a redirect to push the WordPress url /%post_id%/ to the /blog section of the new site. What we currently get is page not found. Can anyone help with the htaccess redirect code? Many thanks one and all.
Intermediate & Advanced SEO | | Taiger0 -
Setting up 301 Redirects after acquisition?
Hello! The company that I work for has recently acquired two other companies. I was wondering what the best strategy would be as it relates to redirects / authority. Please help! Thanks
Intermediate & Advanced SEO | | Colin.Accela0 -
Help With This Page
This is page - http://www.kempruge.com/location/tampa/tampa-personal-injury-legal-attorneys/ - is the most important one to my business, and I can't seem to get it to rank higher. It has the second highest authority and links, second only to my homepage (though none are all that impressive) but it is just buried in the SERPs. Granted, I know Tampa Personal Injury Attorney is the hardest keyword for us to rank for, but there must be some way to improve this. I know getting high quality links is an appropriate answer, but I'm looking for anything I can do solely on my end to improve it. However, if anyone has some ways to make the page more linkable, I'm all ears! Please, if you have a second to take a look, I'd appreciate any and all feedback. Thanks, Ruben
Intermediate & Advanced SEO | | KempRugeLawGroup0 -
Temporary Redirects on Magento
I've recently taken over a client who uses the Magento platform and there was definitely a duplicate issue with his homepage. It redirected www to non www, however the canonical tag was setup wrong and pointing to the www version. When I looked at OSE for both versions the non www has only 7 linking domains and a page authority of 32. The www version has 24 linking domains and page authority of 39. As the domain is fairly new, I decided to redirect the non www to www and keep the canonical the same. (I changed the internal linking structure etc). When I run both URLs through this tool: http://www.ragepank.com/redirect-... it's returning a whole bunch of 302, rather than 301 redirects. What's the deal with that? Is that a Magento setting that I can fix or something a little harder? I'm not sure if it's proper etiquette to post the URL of a client, so if that would help and is OK, please let me know. Thanks
Intermediate & Advanced SEO | | bradkrussell1 -
Review of on page SEO - Please help
Hi I am new to SEOmoz but can see a lot of great information going back and forth. I am looking for a little help with the SEO on our site and looking for suggestions on what to do to improve it. We have some pages where we aggregate content from our database such as this: http://www.touristlink.com/india/nagpur/cat/temples.html It would seem that "Temples in Nagpur" is not that competitive of a term but we dont show up until page 4. Any on page suggestions on what we could do to improve? Or any mistakes we are making. All the content on the site is fairly new as in 6 months even though the site has been established and online for a number of years. We have not done any specific linking building for the term "Temples in Nagpur" Any suggestions on the overall structure of the site would also be great. Thanks in advance.
Intermediate & Advanced SEO | | DavidUrmann0 -
301 Redirect for 2500 pages
Hi, We have an existing site done in DNN and we recreated it on a new platform (EPiServer) and now we're going live. However, there are 2500+ page URLs from the old site which is not exisitng on the new site. What do you reckon is the best way we can address this? Do we create a 301 redirect individually for each of these pages? These 2500+ pages have a domain authority 34-35 and I think it's best that we retain those. We'll be using the same domain name. Suggestions for ways to approach this issue would be greatly appreciated. I have access to the server and IIS. *Also, how do I create a virtual page in IIS? and redirect it to another URL within the site? Thanks.
Intermediate & Advanced SEO | | Peter.Huxley590