Temperary redirects
-
I have a problem with temp redirects, I have a dating site and the redirects happen when guests on the site are prompted to purchase a subscription while trying gain access to the sites contents. I was told to change them to 301 redirects but don't know how. any help, thanks guys.
-
Hello,
301's are done in the htaccess file of your server/where your website files are located.
All the best
-
It would depend on exactly how you're doing this, but to me this doesn't sound like a situation for a permanent redirects. Permanent redirects will be cached by browsers, meaning if someone goes to a profile page, gets the message, logs in, and goes back to that profile page URL, they may still get redirected to the log in page. I'd be very careful with this.
This sounds like an ideal situation for temporary 302 redirects. Having 301s pass whatever link juice these profile pages have to a log in page doesn't sound very substantial to me. You're probably not trying to get the log in page to rank in Google, and I doubt these profile pages that can only be accessed when a user is logged in are getting a ton of links?
-
It's a bit difficult to provide an exact answer since I don't know how your site is configured, what kind of server you are on or what your goals are, but I will try answer your question about how to change temporary redirects to 301 permanent redirects.
If you have a Linux/Apache/PHP server, you can configure sitewide redirects within the .htaccess file. Here is a useful tool for creating .htaccess 301 redirects - http://www.htaccessredirect.net/
If you want to handle the redirects on a page by page basis, you can also do so using PHP.
Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.new-url.com" ); ?>
Here is a good primer for how to set up 301 redirects if you are not able to set them up with .htaccess or PHP - http://www.webconfs.com/how-to-redirect-a-webpage.php
Also, for SEO, it is critical to the search engines that 301 permanent redirects are used instead of 302 temporary redirects in most cases. You can use this tool to test if your redirects are working correctly - http://www.internetofficer.com/seo-tool/redirect-check/
Let me know if you need any additional assistance.
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
-
Avoid landing page redirects C (75) SERVER HIGH What's this mean?
HI we have a wordpress website with a chain of redirected urls? one is with www. the other without? How do I found out where this is? or what could be causing it? Any help much appreciated 🙂
On-Page Optimization | | KellyDSD861 -
SERP Hijacking/Content Theft/ 302 Redirect?
Sorry for the second post, thought this should have it's own. Here is the problem I am facing amongst many others. Let's take the search term "Air Jordan Release Dates 2017" and place it into Google Search. Here is a link:
On-Page Optimization | | SneakerFiles
https://www.google.com/#q=air+jordan+release+dates+2017 Towards the bottom of the page, you will see a website that has SneakerFiles (my website) in the title. The exact title is: Air Jordan Release Dates 2016, 2017 | SneakerFiles - Osce Now, this is my content, but not my website. For some reason, Google thinks this is my site. If you click on the link in search, it automatically redirects you to another page (maybe 302 redirect), but in the cache you can see it's mine:
http://webcache.googleusercontent.com/search?q=cache:qrVEUDE1t48J:www.osce.gob.pe/take_p_firm.asp%3F+&cd=8&hl=en&ct=clnk&gl=us I have blocked the websites IP, disallowed my style.css to be used so it just shows a links without the style, still nothing. I have submitted multiple google spam reports as well as feedback from search. At times, my page will return to the search but it gets replaced by this website. I even filed a DMCA with Google, they declined it. I reached out to their Host and Domain register multiple times, never got a response. The sad part about this, it's happening for other keywords, for example if you search "KD 9 Colorways", the first result is for my website but on another domain name (my website does rank 3rd for a different Tag page). The page I worked hard on keeping up to date. I did notice this bit of javascript from the cloaked/hacked/serp hijacking website: I disabled iFrames...(think this helps) so not sure how they are doing this. Any help would be greatly appreciated. Note: I am using Wordpress if that means anything.0 -
How long keep 301 redirects?
Our site has been updated twice in the past 6 years with new, better urls. Initially we did 301 redirects 3 years ago for the url redirects. Recently some of those redirected pages have been redirected again. Question: How long before it's time to have the old, original urls removed through Google? And, once that is done, how long to wait before removing the older redirects from the htaccess file? Appreciate any feedback/insights on this matter.
On-Page Optimization | | Manifestation0 -
Acquired Old, Bad Content Site That Ranks Great. Redirect to Content on My Site?
Hello. my company acquired another website. This website is very old, the content within is decent at best, but still manages to rank very well for valuable phrases. Currently, we're leaving the entire site active on its own for its brand, but i'd like to at least redirect some of the content back to our main website. I can't justify spending the time to create improved content on that site and not our main site though. What would be the best practice here? 1. Cross-domain canonical - and build the new content on our main website? 2. 301 Redirect Old Article to New Location containing better article 3. Leave the content where it is - you won't be able to transfer the ranking across domain. Thanks for your input.
On-Page Optimization | | Blenny0 -
Can you 301 redirect to a page that has other pages 301 to it?
Two years ago updated url page to include better keywords and used a 301 redirect from the old page to the new. so www.example.com/keyword-1st-generation.html now points to ... www.example.com/keyword-2nd-generation.html That moved the pages up in ranking, but now have better kw for the url, so is it okay to redirect the /keyword-2nd-geration-html to www.example.com/keyword-3rd-generation.html And what is a good length of time before removing the 1st-generation url? It's been 3 years and there is no chance of using it again. Plus, no sign of it in analytics.
On-Page Optimization | | AllIsWell0 -
Temporary Redirect
I am having lot of Temporary Redirect on my reports, and all the links points to my ads server (openX). like this: http://ads.espectador.com/mod2/www/delivery/ck.php?n=a04fb31e&cb=138097 Here in this page there is an example.- How can I fix this? Thanks
On-Page Optimization | | informatica8100 -
Which redirect to use when redirecting to https page from http page
I have one form under https which is redirected from the regular http page. this site was not made by me and I am trying to understand if the way it was redirected using 302 redirect is a problem Thanks
On-Page Optimization | | ciznerguy0 -
301 internal redirects
Hello, I have a lot of low quality pages on my site, many of which have very similar URLs and cover similar topics. I want to tidy up my site by using 301 redirects as Rand suggests here: http://www.seomoz.org/blog/how-to-solve-keyword-cannibalization 1. As a rough rule of thumb, how many internal 301 redirects is too many? 2. Can lots be to the homepage if they're relevant? (I could have as many as 30) Thanks, Kevin
On-Page Optimization | | KMack0