I changed my site from HTML to PHP and I need to get some help.
-
Ok...so the other day I went from HTML to PHP in every part of my website. I want to know the best option for me for redirecting my pages from HTML to php. I had my site scanned with SEOMoz and I was given many 404 errors which is not at all good.
I do not have any pages of my site linking to any of these html pages. All of the site links have been updated. I have checked 3 times.
I have never created a robots.txt file so I would love to get a little help with this part.
I was thinking it would be best to tell Google not to worry about these pages in the file.
I kept the pages up and I plan to remove all code with them so that no content shows up if someone visits but the issue with that is my site is already indexed as HTML.
I want to have the HTML pages redirect to the PHP without worrying that my visitors will land on my site via Google onto an HTML page.
I hope I am making sense.
What is the best advice you can give me. I need all pages to redirect to PHP.
I used an htaccess redirect from all HTML to PHP but when I get so many of them added I get an error on my site saying too many redirects.
Seriously need help.
-
I did that. I changed all my pages to php but my site is indexed in Google for HTML which when they land is not showing anymore because I deleted the .html files.
I need to know the right way to make google index my php pages in replace of the html.
I do not want to get penalized for dup content being that there is a about.php and about.html.
They both have the same content. I also do not want google to think the pages are gone and penalize me for missing or uncrawlable pages.
-
Why are you redirecting .html to .php why dont you just permanently change the endings of the pages to .php?
-
Will the SEOMoz.com team please answer this question. It is sort of important.
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
-
Company name in Site Meta description?
Ok. So I know that you should have your company name in the site title, but is it all that important in the site description? The reason I ask is because I am competing with another company for the #1 position (I was number 1, now #2) that has an 8 character name and mine is 22 taking away from a great deal of real estate in my 150-160 character site description in which I could provide additional information describing my company. Should I remove my name in the site description enabling me to use more descriptive keywords and actionable text such as (Find, research, contact, professional, info) etc. Thanks,
On-Page Optimization | | photoseo10 -
Do Google Know What People Are Doing On My Site?
I run an ecommerce site and am keep to increase the time on site and reduce bounce rate. I have had some good results from writing good articles and advertising them on Outbrain and Twitter; both of these metrics have improved. However, I am wondering if Google will see this. Clearly if people land on the pages from the SERPS and return there they will know what is happening but will they know if people get there from an advert?
On-Page Optimization | | T0BY0 -
Site update and what to do about current keyword rank
Hi im in the process of giving my site a major update as its only one page and not responsive . The the new site will have a homepage with a list of my services with a small description of each and each service will link to its own page. My one page site at the moment ranks number one in my area for a low competition keyword (moz keyword score of 13%) of course this sends me very little traffic. With my new site im also going for more keywords but these will be Moz KWD 30% and 40%. I know this will be quite hard and take some time but i'm pretty sure I know what I need to do to get there. Now my question is what do i do with my current home page (only page) that ranks for that low comp keyword?
On-Page Optimization | | juun
I dont want to lose my rank for that, so do i make a new page on my new site that is optimized for that keyword, but then I don't want to 301 my homepage to that so I guess as its such an easy word to rank for my new page would soon rank for that? What are your thoughts and advice please, thanks in advance.1 -
Integrate a blog within an existing site
Hello everyone! I work on a website of a very small company and so far no one has ever implemented (not even thought about) a proper content strategy. The only content on the site are products description. Through Analytics I discovered lots of opportunities and topics to be covered which would massively increase the traffic, increase the engagement and (hopefully) sales. Problem is that I don't really know how to integrate a blog into the existing site; my first thought was wordpress What is the best way to do it?
On-Page Optimization | | PremioOscar0 -
How much content does Google Crawl on your site?
Hi, We've had a debate around the office where some people believe that Google only crawls the first 150-200 words on a page and some people believe that they priority content that is above the fold and other people believe that all content has the same priority. Can you help us? Thanks,
On-Page Optimization | | mdorville
Matt0 -
How to use canonical with mobile site to main site
I am pretty sure that the mobile version of the main site needs to be the same canonical link from what I understand. I am trying to find good docuementation that supports this. Even better if its from Google or Matt Cutts. I have a main domain like http://www.mydomain.com the mobile version of this is http://www.mydomain.com/m/ Should my canonical be rel="canonical" href="http://www.mydomain.com"/> for both these pages?
On-Page Optimization | | cbielich0 -
Linking within Secondary Site
So we've got a secondary site that has quite a bit of authority & links that used to have all types of info on parasailing. All those pages are gone and homepage is now a salespage (management decision, not mine) Our main site sells a wide range of tours and activities and does have a page for parasailing. The secondary site uses the same template/navigation as our main site (again, not my decision). Do you think that's an effective way to send link juice to our main site? The secondary site has some pretty awesome high authority sites linking to it. I've considered 301'ing the whole site to our main site but it's got a really solid domain name and I'd like to take up 2 SERP listings (main and secondary site) Is there a better way to have double listings but still send a good amount of link juice?
On-Page Optimization | | SoulSurfer80 -
How different does each page tilte need to be?
I've got a site that is all about wood countertops. There are a few ways people can find info on wood tops. (main) wood countertops (main) butcher block butcher block counters wood counters hardwood countertops etc. For the most part I want to rank for the two top key phrases because they pretty much cover all the other basis with google being as smart as it is. So they question is how different should each page title be? Examples: Wood Countertops - Butcher Block Counters | by J. Aaron = index page Wood Counter tops - Butcher Block Counters - About Us | J. Aaron = about us page Cleaning Butcher Block - Wood Countertop Maintenance | J. Aaron = care & maintenance page Would it be OK to use: <title>Wood Countertops - Butcher Block Counters | by J. Aaron</title> as the template for the whole site with the addition of the actual page subject as an additional piece of the sentence, like example 2 or would that be too similar? Also is that a good idea or should I commit to optimizing each page for a different key phrase? If so would you optimize the home page for the most searched for phrase and let the other pages back it up with the other search terms?
On-Page Optimization | | JAARON0