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
-
Do you need to include the top menu on every single page of the site in the code?
When using cache: on google, and clicking on Text-only version, our site has the top menu gibberish on top? My feeling is that this take away SEO juice from our title and focus keyword. Our website is culinarydepotinc.com
On-Page Optimization | | Sammyh1 -
Help finding someone to handle crashing site/site optimization.
I need someone who can handle website/WordPress issues as they come up.For example, my site has gone down 4 times tonight, and my host can't figure it out. They also keep recommending that I optimize my site, but I don't know how. I need a go-to web person for this sort of thing. Any recommendations?
On-Page Optimization | | cbrant7770 -
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 -
2 sets of meta tags in html
I use Wordpress for my business website...when I was looking at my html using "source" on Google, I noticed it looks like my site html has 2 sets of meta tags? www.seadwellers.com is my site
On-Page Optimization | | sdwellers
I do not know why, and I am not sure how to get into my html using Wordpress to delete one set?1 -
Help with the indexation of my page
Hi all, I have a problem with my website. When writing site:www.pinesapiensa.com there're no pages indexed although the webmaster tools tells me that the sitemap file has been processed in 13 May and the number of indexed paged are 21. ¿What could be happening? I have to mention that there are two domains "www.piensapiensa.es" and "www.piensapiensa.com" addressing the same website and there's a redirection from piensapiensa.com to piensapiensa.com but it doesn't work properly. Thanks
On-Page Optimization | | juanmiguelcr0 -
Keyword distribution in the whole site
I've been taught during a SEO course that the whole site has to contain the chosen keywords with a fixed proportion of optimized pages, that should be like this: 50% of pages optimized on the most relevant keyword (just one keyword) 25% of pages optimized on secondary kewords (depending on the size of the site, could be a few pages for each secondary keywords) 25% of pages on long tail keywords. the teachers was a very respected SEO professional, but I've never seen this strategy anywhere in other articles or SEO guides. what do you think about it?
On-Page Optimization | | DavideM
It's true that it brings visibility for the top keyword?
does it lead to cannibalization?
what others strategy do you use?0 -
Getting page cached
I am reworking some content that is deep in my site. What is the best way for google to find it? Some of the pages were cached about 3 weeks ago, but I don't want to wait too long to get them to see the new content (and links).
On-Page Optimization | | azguy0