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
-
Redirect Chain
Describe tu pregunta en detalle. ¡Cuanta más información proporciones, mejor! Ayuda a dar contexto a una gran respuesta. in Moz I did the analysis of my web and it tells me that I have a redirect in chain: The redirect chains often occur when several redirecting rules are accumulated, like redirecting a 'www' to a URL other than www or a page not secure to a secure page / https: Look for any recurring string that can be rewritten as a single rule. Take special care with chains 301/302 in any combination, since 302 in the mix could affect the ability of 301 to pass the value of the link. I thank you for your help in solving
On-Page Optimization | | Miguelperez0 -
Alot of 302 Redirects, what to do?
I'm currently auditing my companies website, and we encountered thousands of 302 redirects. The 302 pages are products page, which is a question and answer module at the bottom of each products page. What best practice should I do to get rid of the 302 redirects? add those pages to the .robots.txt? Or do individually and add a no index? This would help boost our rankings up correct?
On-Page Optimization | | petmkt0 -
301 redirects. If new website is a different business does it still send link authority?
Hi Guys. I'm a music producer and studio owner. I want to start a new business for online music mixing. Instead of starting from scratch I want to use a 301 redirect from my previous site that has built up a little authority over the years. However, the old site is purely for my music studio, there is no mention of online mixing services. Will Google consider this 'odd'? Pass less link juice? Or perhaps pass no authority at all if Google 'decides' the 2 business are unrelated? Cheers in advance guys. Isaac.
On-Page Optimization | | isaac6630 -
How to redirect subdomain to new blog directory
I have moved my wordpress blog from a subdomain to a subdirectory /blog/ on my site. What is the best way to setup a redirect from the subdomain to the new /blog/ directory? Or should I just delete the subdomain blog and wait for google to index it on /blog/. I need to do one or the other so as not to run into duplicate content issues.
On-Page Optimization | | SamCUK0 -
Redirecting https pages
If I add 301 redirects from the https versions of the root domain to the http:www.website.com (canonical version), will this prevent users from being able to access the https version? I believe the https version is only accessed once users log into the site. Thank you!
On-Page Optimization | | HiddenPeak0 -
302 redirect (temporary redirect)
Hello guys, I have a stupid problem, i guess you solved long time ago. After i crawl my website, i found out that i have 8k temporary redirect (302 redirect). All of them came from www.domain.com/enable-cookies, there are 8 k of this type. I guess i am not first one with magento having this problem. Could you explain what happen in fact? And more than that could you explain how to fix it? I bet people will find this thread important i will not be the last one with this problem Thank you in advance. With Respect, Andrei
On-Page Optimization | | Shanaki0 -
301 redirect link
Hi, I found some explanations on seomoz about permanently links, but I'm not sure, if I understood right, what to do. Our website has been created with a wrong structure and I have to change the URL of a couple of pages. E. G. http://www.ix-tours.com/Youth/ixdestBrusselYouth.aspx should be changed to http://www.ix-tours.com/DE/Jugend/BruesselJ.aspx to allow search identify it as a german page. What to do? Should I delete all content from the old page and insert the redirect to the knew one? The code as follows has to be inserted in the head section? Thank you for your help Brgds georg
On-Page Optimization | | itmlage0 -
Too many 301 redirects to home page - is this possible?
If a site has a bunch of 404’s that are basically old URL’s that no longer work and point to pages or documents that don’t exist anymore - Can someone clarify if it’s a problem when fixing a bunch of these 404’s to point them all to the home page? so if there is not really anywhere else that is applicable for the old broken URL, is it really a problem to 301 old pages to the site home page? I have read some different things on this recently on some different sites, so I just wondered what the latest thinking on this was….thanks...
On-Page Optimization | | inhouseninja0