301 help, whats the best way
-
Hi all
right now i have 301 redirects setup in my htaccess file
i recently redesigned our site so i have been redirecting all the old urls to the new ones.
I saw a post about having all your urls the same format, so i updated my htaccess file to redirect all urls from http://www.mysite.com/food to http://www.mysite.com/food/ (added a forward slash).
Now on my latest seo crawl i see all my site urls, redirecting to the forward slash url.
am i doing this right,
thanks
will
-
Sounds like you're doing it right!
You want your URLs to end in a trailing slash, and for the URLs that don't, you want a training slash added. If that's what's showing up in your reports and in your spot checks, you're doing great!
You may want to write a code that does this automatically -- e.g. that adds a trailing slash to any URL that doesn't have one, if that url doesn't inclue a filetype (to exclude bad things like /image.png becoming /image.png/)
Note: If you're on Wordpress, you might try a plugin like http://wordpress.org/extend/plugins/smart-404/ to catch any bad urls that might rear their heads later -- it or something like it (if you're not on WordPress) would also likely take care of the redirection issue you're having altogether.
-
Hi Will,
Looks like you've got it right.
Without the 301 redirect you'd have two versions of the same page (one with the trailing slash, and one without), so 301 redirecting all the URLs to the version with the trailing slash is definitely the best way to go.
If your crawl report shows the redirects are active you should be good to go.
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
-
Tags problem I need help
Hello I have a problem on my site and I want to help solve it I allow adding tags in search engines However, when writing new content, tags are not added to search engines This is my website link مجلة الحلوة
Technical SEO | | ahmedahmed3230 -
Redirection loop. Best way to resolve...
Hi Guys Got a warning on a crawl today "Your page is redirecting to a page that is redirecting to a page that is redirecting to a page... and so on." In GWMT it is set to www. and also back-end in my server. I also have an SSL deployed and in my htaccess the rule is added to ensure all pages got to SSL. Any of you guys have advice regarding the best route to go or should I "IGNORE" this warning as all other aspects are clocking 95%+? Thanks in advance Daren
Technical SEO | | Daren-WebSupportLab0 -
Newby question about 301 redericts
I work for a design firm who has been updating a website for a client. In addition to a new look, we've consolidated redundant pages for a more streamlined site. My question is this: when I have replaced 3 somewhat redundant pages on the old site with 1 page on the new site, should I 301 redirect all the former pages to the one new page. I know this question is beyond basic but I'm pretty new to SEO, so be gentle.
Technical SEO | | TheKatzMeow0 -
301 redirect from sites closing down
Hi We have around 10 supplementary sites that have links to our site which are now closing down but are out of our control. We could have access to their domains so how could we maintain the link juice from these old sites which are going to our new site? However there will be no websites left on these old supplementary just domain names
Technical SEO | | ocelot0 -
Best Place to Redirect 301 to?
Hey Everyone! I have an old site with hundreds of blog posts that are very spammy (duplicate content, keyword stuffed, and just plain bad content). I am going to redirect them and delete them from WordPress but I'm wondering where is the best place to redirect them to? Home page, other posts, other pages...? Any thoughts would be appreciated! Thanks!
Technical SEO | | adamxj21 -
How best to go about creating an application?
Hi there, I work within the travel sector, and I've had an idea of getting an embeddable application built, which would be of use to my company, but also lots of other companies (our competitors) and general websites in our niche. The idea would be that we'd get (and pay for) the application to be built, and then allow other parties to embed it into their site with a snippet of our code so we get the link back from them. There are obviously some technical issues here. The app will be built with Javascript (we can't use PHP on our web server , its a long story!) and I'd want a way to stop other swiping the code and using without the link to us. Is this going to be possible? Also, whats going to be the best way to get the link from them? If a competitor used it, they are less likely to do so with our company name plastered all over it, so it would need to be subtle, or an image link, or something. Not sure. Anyone done this sort of thing before? Thanks
Technical SEO | | neilpagecruise0 -
301 Redirect & Cloaking
HEllo~~~~ People. I have a question regarding on cloaking. I will be really greatful if you can help me with question. I have a site www.example.com and it is targeting for multi countries. So I use sub directories for targeting multi countries. e.g. www.example.com/us/ www.example.com/de/ www.example.com/hk/ ....... so on and on. Therefore, when people type www.example.com, I use IP delivery to send users to each coutries. Here is my question. I use 301 redirect for IP delivery, which means when user enter www.example.com, my site read user's IP and send them to right country site by 301 redirect. In this case, is there any possibility that Google considers it as cloaking? Please people.... share me some ideas and thoughs.
Technical SEO | | Artience0 -
Best way to Handle Pagination?
At the moment I my blog is paginated like so: /blogs > /blogs/page/2 > /blogs/page/3 etc What are the benefits of paginating with dynamic URLs like here on SEOmoz with /blog?page=3
Technical SEO | | NickPateman810