How do I redirect my old PHP website to my new Java website?
-
Please could you help?
My old website is written in php. I've created a new design of the website in Java. I'll be using the same domain name though.
and I'd like to pass my link juice to my new redesigned website. When I turn the domain name to point to my new website how do I make sure pages that are ranked in google that don't exist on my new website transfer 301 from my old website to a similar page on my new website.
Old Website Example
New Website Example
Many Thanks,
Rob
-
Hi Rob,
I would recommend using htaccess 301 redirects. If you're not currently using htaccess you just need to create a file in your website's root folder and name it .htaccess and jsut add a 301 redirect line for each redirect that you want to do. See below for example.
Redirect 301 /bootcampuk.php /bootcamps.jsp
So it's Redirect 301 Old-Url New-Url
Let me know if you have any questions!
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
-
Planning to transition to a new website domain - should I press pause on SEO initiatives?
Hello - my company is planning to transition to a new website domain sometime this year, probably about six months from now. Our current website does not currently get much organic traffic from unbranded search terms. I would really like to fix that by publishing lots of new blog posts and trying to get more backlinks. But with the website transition on the horizon, I'm wondering if I should hold off on posting new pages and getting backlinks for the time being. Then once the new website is live, I can start to ramp things up. What would you do in this situation? Also, does anyone know of any thorough guides or walk-throughs that cover all of the best practices (re: SEO) when migrating to a new website domain?
Intermediate & Advanced SEO | | collinburkewg0 -
301 Redirect from query string to new static page
If i want to create a redirect from a page where the slug ends like this "/?i=4839&mid=1000&id=41537" to a static, more SEO friendly slug like "/contact-us/", will a standard 301 redirect suffice? Thanks, Nails
Intermediate & Advanced SEO | | matt.nails0 -
New Website's Not Ranking for Branded Term
Hey Friends, I can't seem to figure out why https://feello.com/ isn't ranking on Google for it's branded term (Feello). It's ranking in 1st position on Bing and Yahoo but on page 2 (16th or so) on Google. Going through the list and can't come up with an answer. Metadata: Yes Indexed to Webmaster: Yes, Fetched pages: Yes Google cache on May 27, 2017: Check Using canonical and redirecting for non-www and HTTPS version: Yes & Yes Feello in domain name: Yes Set up social profiles and GMB: Yes Driving traffic: Yes, some email and ads Checked robots.txt: Yes, not created yet Created and Submitted Sitemap: Yes - https version Checked for blocked resources: None. The list goes on...Any ideas would be appreciated.
Intermediate & Advanced SEO | | GarrettDenham0 -
Blog subdomain not redirecting
Over the last few weeks I have been focused on fixing high and medium priority issues, as reported by the Moz crawler, after a recent transition to WordPress. I've made great progress, getting the high priority issues down from several hundred (various reasons, but many duplicates for things like non-www and www versions) to just five last week. And then there's this weeks report. For reasons I can't fathom, I am suddenly getting hundreds of duplicate content pages of the form http://blog.<domain>.com</domain> (being duplicates with the http://www.<domain>.com</domain> versions). I'm really unclear on why these suddenly appeared. I host my own WordPress site ie WordPress.org stuff. In Options / General everything refers to http://www.<domain>.com</domain> and has done for a number of weeks. I have no idea why the blog versions of the pages have suddenly appeared. FWIW, the non-www version of my pages still redirect to the www version, as I would expect. I'm obviously pretty concerned by this so any pointers greatly appreciated. Thanks. Mark
Intermediate & Advanced SEO | | MarkWill0 -
Splitting one Website into 2 Different New Websites with 301 redirects, help?
Here's the deal. My website stbands.com does fairly well. The only issue it is facing a long term branding crisis. It sells custom products and sporting goods. We decided that we want to make a sporting goods website for the retail stuff and then a custom site only focusing on the custom stuff. One website transformed and broken into 2 new ones, with two new brand names. The way we are thinking about doing this is doing a lot of 301 redirects, but what do we do with the homepage (stbands.com) and what is the best practice to make sure we don't lose traffic to the categories, etc.? Which new website do we 301 the homepage to? It's rough because for some keywords we rank 3 or 4 times on the first page. Scary times, but something must be done for the long term. Any advise is greatly appreciated. Thank you in advance. We are set for a busy next few months 🙂
Intermediate & Advanced SEO | | Hyrule0 -
Someone To Review My Website
I want someone to review My Website as I'm tired of doing everything but its not getting ranked, one day its in top 50 and on the very next day it jut gets disappear, Website URL: http://goo.gl/duJPf I'm trying to get my inner pages rank in google, http://goo.gl/Ha1Vm http://goo.gl/913DR Can someone please review it and tell me if m doing something wrong or if m missing something! Please suggest Thanks
Intermediate & Advanced SEO | | AnkitRawat0 -
Move to a new domain - How to get the redirects right?
Hi, I hope that someone with good htaccess knowledge can help. I am planning on moving my site to a new domain. I understand that I should make 301 redirects using htaccess for every URL. This is a big site so it will be impossible to not forget some of the thousands existing URLs. Now to the question: How do I make all the URLs that is not specified in htaccess to redirect to my new root? Thanks!
Intermediate & Advanced SEO | | mrlolalot0 -
New Website.. From where to start with a SEO Plan ?
Hi.. We have got two SEO and link builders working here in the office, putting in efforts is not a problem. And we have been doing SEO for our websites since a long time and they all rank well. Since, I have signed up for SEOMOZ, which is the one stop with all the heavy duty SEO guys, so we would like to get some suggestions from the experts. Ok here is the question. We have launched a new website this week and we have got a new SEO client, whose website is 6 months old. 1. What should be a proper SEO plan for a new website ? Got any Plan PDF or Buleprint, which you can send me ? 2. For the client website , he is ranking on 4-7th pages for his 4 keywords. Whats should be the correct way or plan to start doing SEO for them and get them to the first page ? 3. I feel like, doing competitive analysis is lacking with us and we are not good at evaluating that step. Whats the bet way to do competitive analysis ? 4. We are looking to build more and more links to the website . Whats the best way to make links ? Got any SEOMoz Blog post link, which explain this better or any forum thread which has got the tricks for this ?
Intermediate & Advanced SEO | | qubesys0