Which one should I be using 301 redirects
-
Hiya guys,
I have a little problem, not sure which one I should be using, for 301, be easy on me I've not dealt with this before.
So we have http://www.talknightlife.co.uk
and I've done redirects for http://talknightlife.co.uk to http://www.talknightlife.co.uk
host http://www.talknightlife.sheffieldspeedcameras.co.uk to http://www.talknightlife.co.uk
Because my website is purely a forum and in the canonical error from the optimisation tool is showing 301 canonical = http://www.talknightlife.co.uk/forum.php should I be redirecting that to http://www.talknightlife.co.uk or the other way round, or just leave it ? I'm a little confused
Cheers in advanced for your help guys
-
You have two options here:
1/ Leave it: You must have rel="canonical" href=" http://www.talknightlife.co.uk" >> it's ok
2/Redirect 301 redirect http://www.talknightlife.co.uk/forum.php to http://www.talknightlife.co.uk if you can't do it, redirect 301 http://www.talknightlife.co.uk to http://www.talknightlife.co.uk/forum.php
(2) better then (1) - My opinion
Add this to your htaccess:
RewriteEngine on
# forum.php to /
*RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.forum.php\ HTTP/** RewriteRule ^(.*)forum.php$ /$1 [R=301,L]**
It's work for me !
-
thats my solution too, but when I do the 301 direct on the /forum.php it doesn't work,
then again I'm confused, should i be doing the 301 on my domain host provider? my server provider? or via Vbseo on Vbulletin
any more answers would be much appreciated guys
Cheers Luke
-
I understand your confusion. Here's how I would look at it. It seems clear you want your main authority home page to be : http://www.talknightlife.co.uk
Make your canonical on all pages in question point to that URL: http://www.talknightlife.co.uk
Then, 301 redirect http://www.talknightlife.co.uk/forum.php to http://www.talknightlife.co.uk
I'm not a technical SEO guru so I am interested to know if anyone else has different advice. But this seem to make common sense to me.
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
-
Combine Facebook referrals into one
Hello, I am a bit confused about the correct setting of filter to combine All facebook referrals into one.
Reporting & Analytics | | Johnroger
After going through different versions, not sure which one is correct and will work Some versions say that Search string should be - *^.facebook.com$ and Replace string should be - facebook.com While according to other Search string should be > *.facebook
and Replace string should be - facebook Please guide which one of this is correct and will work ? Thanks0 -
Spam using Hostname so filter not working
Hello, on one of our sites, we have filtered via the hostname. We have done this on other sites quite happily but on this particular new website, when we add in the hostname filter, we still get loads of direct and referral traffic which is junk - and the hostname of these junk referrals are the website's domain. So it seems that this filter is not working or the spam are now using the hostname? Not sure what is going on or how to solve this?
Reporting & Analytics | | AL123al0 -
Redirecting all URLs appended with index.htm or index.html
It has come to my attention with one of my clients (WordPress website) that for some time they have within their Landing Page report (of GA - Google Analytics) URLs that should all be pointing to the one page, example: domain.com/about-us, also has a listing in GA as domain.com/about-us/index.htm Is this some kind of indication of a subdirectory issue? Has anyone had experience with this in such wordpress plugins as Yoast SEO, or other SEO plugin? My thoughts here are to simply redirect any of these non-existent files with a redirect in .htaccess - but what I'm using isn't working. I will insert the redirect here - - and any help would be greatly appreciated. RewriteEngine onRewriteCond %{THE_REQUEST} ^./index.html?
Reporting & Analytics | | cceebar
RewriteRule ^(.)index.html?$ http://www.dupontservicecenter.com/$1 [R=301,L] and this rewrite doesn't work: RewriteEngine on
RewriteRule ^(.+).htm$ http://dupontservicecenter.com/$1.php [R,NC] _Cindy0 -
Using Site Maps Correctly
Hello I'm looking to submit a sitemap for a post driven site with over 5000 pages. The site hasn't got a sitemap but it is indexed by google - will submitting a sitemap make a difference at this stage? Also, most free sitemap tools only go up to 5000 pages, and I'm thinking I would try a sitemap using a free version of the tool before I buy one - If my site is 5500 pages but I only submit a sitemap for 5000 (I have no control of which pages get included in the sitemap) would this have a negative effect for the pages that didn't get included? Thanks
Reporting & Analytics | | wearehappymedia0 -
High Temporary Redirects: Login required pages
Noticed something interesting, a high temporary redirect report from Moz. Reviewing the pages they are caused by the user having to login and getting redirected. I can see the returnto query in the URL too. My thoughts: Since a login is required and the user is being redirected, these should remain 302 and not 301. I tested my Google Analytics account to **Exclude URL Query Parameter **returnto, just to see if it affected traffic. It didn't, I mean I don't see urls duplicated with the parameter anymore, just grouped together, so traffic is still being counted. I'm going to wait 1 more day and see what impact the GA traffic is before applying the exclusion to my true Google Analytics profile. This got me thinking, I should probably exclude this parameter from Google and Bing Webmaster Tools, that way Google/bing won't read those urls. Now does Moz's crawler follow that? Do you think that would change my moz crawl diagnostic report because I told Google/Bing crawlers to exclude that parameter. What do you think of my approach to reduce these high temporary redirects reported by Moz? Will it work? Has it plagued you?
Reporting & Analytics | | Bio-RadAbs0 -
What type of links/redirect is Yahoo! using?
So I'm trying to figure out exactly what type redirect or hyperlinking Yahoo! is using on their article pages. For example:
Reporting & Analytics | | William.Lau
https://shopping.yahoo.com/blogs/fashionate/spring-clean-your-beauty-routine--10-tips-on-looking-fresh-this-season-000058218.html Hover over an external link, it shows you the ending URL. Right or left click it, it gives you a 302 redirect. When you actually left click it, it adds and "id" attribute, I assume for tracking. However, when you left click the the hyperlink, it no longer shows as a 302. I have limited working knowledge of web development techniques, so anyone with advance knowledge or have actually done this, it'd be helpful to understand this more.0 -
Verifying Site Ownership & Setting Up Webmaster tools for clients who use Hubspot
We are a Hubspot partner agency. I'm trying to find the best route for managing Google's tools as an extra resource for insight, not the primary basis for marketing effort. I also want to explore adwords in more depth. Finding a lot of our clients don't have one or the other or both Analytics/Webmaster tools in place. Can I verify site ownership to set up webmaster tools simply by having admin access to their analytics account or will that require ownership of the analytics account? With Google merging things together these days I'm not sure of the best approach to take. Usually clients have their site hosted somewhere and built on some platform and ADD a Hubspot blog and the landing pages/cta's, Hubspot tools on a subdomain hosted by Hubspot. Hubspot has tools in it's website settings for adding google analytics (actually it's just a field to add code to the header area). If a client has universal analytics on their primary domain do I still need to go and add a separate analytics property for the subdomain and go through Hubspot's tools to install it on the subdomain? Or just use the same code from their primary domain and add it to the Hubspot header? What is the best route? Any additional thoughts on this subject are welcome - with so much updating and changing coming from Google (and Hubspot as we implement 3.0 - COS) I'm trying to avoid wasted effort, outdated methods, etc. Thanks!
Reporting & Analytics | | rhgraves651 -
Page Speed - What tool to use?
I am looking for a good tool to measure page speed. Any tools out there that you recommend?
Reporting & Analytics | | rmontanez0