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
-
Help With Href Lang Implementation
Hi, We've received the following Href Lang errors in Google Search Console. After much research and playing around with the tags we're still no closer to fixing the issues. ERRORS; http://prntscr.com/du8ei8 AND http://prntscr.com/du8evi As you'll see, Google is telling us that some URLs do not have return tags, but they do seem to! Does anyone know of a pro that can provide a service to fix this for us? Many thanks in advance, Lee.
Intermediate & Advanced SEO | | Webpresence0 -
Transferring Domain and redirecting old site to new site and Having Issues - Please help
I have just completed a site redesign under a different domain and new wordpress woo commerce platform. The typical protocol is to just submit all the redirects via the .htaccess file on the current site and thereby tell google the new home of all your current pages on the new site so you maintain your link juice. This problem is my current site is hosted with network solutions and they do not allow access to the .htaccess file and there is no way to redirect the pages they say other than a script they can employ to push all pages of the old site to the new home page of the new site. This is of course bad for seo so not a solution. They did mention they could also write a script for the home page to redirect just it to the new home page then place a script of every individual page redirecting each of those. Does this sound like something plausible? Noone at network solutions has really been able to give me a straight answer. That being said i have discussed with a few developers and they mentioned a workaround process to avoid the above: “The only thing I can think of is.. point both domains (www.islesurfboards.com & www.islesurfandsup.com) to the new store, and 301 there? If you kept WooCommerce, Wordpress has plugins to 301 pages. So maybe use A record or CName for the old URL to the new URL/IP, then use htaccess to redirect the old domain to the new domain, then when that comes through to the new store, setup 301's there for pages? Example ... http://www.islesurfboards.com points to http://www.islesurfandsup.com ... then when the site sees http://www.islesurfboards.com, htaccess 301's to http://www.islesurfandsup.com.. then wordpress uses 301 plugin for the pages? Not 100% sure if this is the best way... but might work." Can anyone confirm this process will work or suggest anything else to redirect my current site on network solutions to my new site withe new domain and maintain the redirects and seo power. My domain www.islesurfboards.com has been around for 10 years so dont just want to flush the link juice down the toilet and want to redirect everything correctly.
Intermediate & Advanced SEO | | isle_surf0 -
Help... To Optimize Category Page or Not?
My question is about whether to optimize a category page or not, but it’s a rather odd situation. Here’s a bit of background to start. When we relaunched our site, about six months ago, we had primary, secondary, and tertiary categories created. A user could reach all three levels by clicking through the site. Then we decided instead of linking to the tertiary categories, that we’d turn them into filters which can be applied at the secondary level. Thus, there is not actually a direct link to the 3rd level categories on the site. An important side note, I did check and confirm they are still included in the sitemap file. My initial thoughts were to forget any further optimization of those 3rd level categories, but as it turns out we still have rankings for some of them. Now the question… Because some of these pages are ranking and are found in the sitemap, should I include them in my SEO plan to build up and optimize, or because they are no longer linked to directly on the site will they eventually fizzle out (and I shouldn’t do anything further). This is such a unique situation that I am really looking for some insight from the community. Thanks!
Intermediate & Advanced SEO | | M_D_Golden_Peak0 -
Need help in Title tags
Hi I have word press site and it has 24 pages and the main keywords is Stairlifts there are various kind and type of stairlifts and all the 24 page has the title tag stairslifts , i have tried to make each unique but i cannot avoid using the keyword stairslift. Will that have a negative impact if my main keyword is stairlifts. My target page for stairlifts is the home page. Any suggestions please Many thanks
Intermediate & Advanced SEO | | conversiontactics0 -
How to 301 redirect all URLs with /? in?
I want to redirect all URLs that have /? in it. Indexed in Google is a bunch of urls lik: mysite.com/?674764 mysite.com/?rtf8y78 I want all these URLs to be redirected to my home page. Any ideas?
Intermediate & Advanced SEO | | JohnPeters0 -
Redirection to mobile site
Calling all SEO ninjas! I'm currently developing single web pages for various clients which function as abbreviated versions of their main websites. They are all related & under a single domain. When a user visits these pages on a mobile device, CSS is used to display mobile friendly versions of these pages. My clients are thrilled with these mobile versions and now want to also redirect mobile visitors from their main site (which is not mobile optimised) to these pages. My questions are: Are there any negative implications if we did this? ie. redirecting to a different domain What is the best method for redirection? eg. JavaScript Can this be achieved by adding a single line of code to their main site Can this be done in an SEO friendly way so that the redirection acts like a backlink? Many thanks.
Intermediate & Advanced SEO | | martyc0 -
301 Redirect question
Which is the best way to set up the 301 redirect on my main home page? http://horsebuggy.com to http://www.horsebuggy.com Or does it make a difference? Boodreaux
Intermediate & Advanced SEO | | Boodreaux0 -
301 redirect every pages?
Good evening, my question might sound stupid but please forgive me, I am still learning SEO. If I build a new site that will replace an existing site. Is there any point to do a 301 redirect for pages that had no inbound link so, no juice to pass? I kind of think that it would be a better practice to 301 redirect each pages to a page that make sense on the new web site .... but here is why I think that. Why I say that If I am lucky, many of my old web site pages will be indexed, many of them having no inbound links. So once the new web site online, until all my new web sites pages are indexed, I could imagine Google would send people to the index pages (the old ones that do not exist anymore)... I am right? So in that case, if I do a 301 redirect only for pages that have inbound links, the user would end up on a 404 page. Could you tell me if it make sense how I think? Thanks a lot !! Nancy P.S. I would not redirect if it make no sense to the user. I fully understand that we must always keep the user experience in mind in any 404 and 301 redirect decisions. But to simplify the question, just suppose it is ok from a user perspective to map every old site pages to a page in new web site.
Intermediate & Advanced SEO | | EnigmaSolution0