Redirect
-
Hello,
I need to redirect just the homepage of my blog somewhere. So blog.com
But there are other redirects in there and I don't want to override them. So blog.com/post.html
How do I just redirect the homepage of wordpress page without redirecting all the other pages.
This is what I did that recreated the issue.
redirect 301 / blog2.com
Thanks!
Tyler
-
Hi Tyler,
Did these answers solve your question, or are you still looking for some more help?
Thanks!
Keri
-
Hello Tyler,
For wordpress I use this tool Redirection. Is a plugin and its damn good and very simple to configure.
Let me know if it helped.
Regards,
PP
-
You need to add a line to the start of your website’s .htaccess file.
A 301 redirect won’t work as it will redirect the whole site, so you have to use a RedirectMatch. The code below will redirect the home page only to google.com, but leave any other pages and archives in place for people to come to your site.
RedirectMatch ^/$ http://google.com
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
-
What is the difference between 301 redirects and backlinks?
i have seen some 301 redirects on my site billsonline, can anyone please explain the difference between backlinks and 301 redirects, i have read some articles where the writer was stating that 301 are not good for website.
Technical SEO | | aliho0 -
Backlink Redirection as Backlink Building Strategy?
Just checking in - i'm working on a site with tons of broken backlinks from high authority sites. For instance, I've discovered that some 90% of their backlinks are broken, and these are from highly recognizable, name brand magazines, newspapers, blogs and the like. Right now, the site has a Domain Authority of 48 (better than most in the industry from what i am learning) yet as the site has been around for years and has gone through 5 redesigns, there is an absolute ton of solid inbound backlinks that are getting 404's. Using Screaming Frog (list mode) I've also learned there are a ton of 301's that turn out to be redirecting to 404 pages so that also starts to add up. I always knew this was a problem / opportunity and I've always considered it a high priority to fix (301) broken links of this sort to improve ranking (you know, using htaccess or WordPress Redirection tools) -- and to avoid multiple redirects wherever possible. In fact, I consider it a basic all-win, no-lose strategy. I always assumed this was the case and I also assume this will continue to be so. However, as a professional, I always want to double check my assumptions every now and then... Is this still considered solid strategy? Are there any issues that one should look out for?
Technical SEO | | seo_plus0 -
404 to 301 redirects is there a limit?
Hi We've just updated our website and have binned out alot of old thin content which has no value even if re written. We have a lot of 404 error on WMT and I am in the process of doing 301 redirects on them. Is there a limit to the number of 301 the site should have?
Technical SEO | | Cocoonfxmedia0 -
301 redirect and search engines
How long until 301 redirects get recognized by search engines? I noticed my link on Google isn't forwarding over to my new domain even after the 301 redirect. If I go to the site directly, the 301 redirect works. Anyone know how long it takes for search engines to pick it up? Thanks!
Technical SEO | | timeintopixels0 -
301 Redirect for homepage with language code
In my multilingual Magento store, I want to redirect the hompage URL with an added language code to the base URL. For example, I want to redirect http://www.mysite.com/tw/ to http://www.mysite.com/ which has the exact same content. Using a canonical URL will help with search engines, but I would just rather nip the problem in the butt by not showing http://www.mysite.com/tw/ to visitors in the first place. Problem is that I don't want (can't have) all /tw/ removed from URLs due to Magento limitations, so I just want to know how to redirect this single URL. Since rewrites are on, adding Redirect 301 /tw http://www.88kbbq.com would redirect all URLs with the /tw/ language code to ones without. Not an option. Hope folks can lend a hand here.
Technical SEO | | kwoolf0 -
When should you turn off redirects to your new domain?
Our website moved to a new domain a year ago, and we have our original domain to redirect to our new domain. We're working on contacting people who still link to our old domain to ask them to update, but 7% of our traffic is still coming as a redirect from our old domain. My question is, when should we just shut the old domain down entirely and stop redirecting people to our new domain? Or should we just keep it up indefinitely? What would be the positive or negative impact on our new domain's SEO if we shut the old domain down? Thanks!
Technical SEO | | UWPCE0 -
301 redirect on the root of the site
Due to some historic difficulties with our URL Rewriter, we are in the position of having the root of our site 301 redirected to another page. So the root of our site: http://www.propertylive.co.uk/ has a 301 redirect to: http://www.propertylive.co.uk/home.aspx We're aware that this isn't great and we're working to fix this completely, but what impact will this have on our SEO?
Technical SEO | | LianWard860 -
Query String Redirection
In PHP, I'm wanting to store a session variable based upon a link that's clicked. I'm wanting to avoid query strings on pages that have content. My current workaround is to have a link with query strings to a php file that does nothing but snags the variables via $_GET, stores them into $_SESSION, and then redirects. For example, consider this script, that I have set up to force to a mobile version. Accessed via something like a href="forcemobile.php?url=(the current filename)" session_start(); //Location of vertstudios file on your localhost. Include trailing slash $loc = "http://localhost/web/vertstudios/"; //If GET variable not defined, this page is being accessed directly. //In that case, force to 404 page. Same case for if mobile session variable //not defined. if(!(isset($_GET["url"]) && isset($_SESSION["mobile"]))){ header("Location: http://www.vertstudios.com/404.php"); exit(); } //Snag the URL $url = $_GET["url"]; //Set the mobile session to true, and redirect to specified URL $_SESSION["mobile"] = true;header("Location: " . $loc . $url); ?> Will this circumvent the issue caused by using query strings?
Technical SEO | | JoeQuery0