HTML Page in PHP Website
-
Does having an HTML page in a PHP website affect SEO? I have a PHP website but one of my targeted pages have an HTML page. Will it cause any harm to the website or is it fine to have a html page in a PHP website?
-
Having different file types in of URLs in your site doesn't affect SEO. It may confuse you, and you may inadvertently link internally to pages that don't exist on your site, but there is no effect on SEO.
There is a way to parse HTML files as if they were PHP pages--but nowadays I don't recommend that. If you do have HTML pages on your site, you may just want to leave them alone. But if you do think you need to change or update their functionality, then setting up a 301 Permanent Redirect from the old HTML page to a new .PHP page, for example, will do just fine. It should not have any effect on rankings.
-
Hi plinggtre67,
This should have no direct effect on SEO. The reason is, PHP is server sided script, which is usually outputted as HTML anyway. HTML is what the browser actually reads.
If you are referring to some pages having .html extensions and some having .php, then from user's perspective that may have a slight impact on some users not knowing whats going on, but in general it shouldn't matter. If you would like a consistent look on the page extensions you can use an Apache URL re-write to remove the extensions all together (just like Moz does). You should notice no pages on Moz site have an actual .extension appended to them.
Example Code: @ StackOverflow
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.)$ $1.phpRewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.)$ $1.htmlI hope this makes sense and helps,
Don
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
-
GMB Website Create Competition That Can Hurt Your Own Site?
Hello, Does anyone know if creating a Google My Business website for a business using the GMB builder creates competition for that business's main, non-GMB website? Thanks.
Local Website Optimization | | lawfather0 -
Multilanguage Website
Hi, I am responsible for managing a multilingual website. I have two questions regarding SEO, based on the structure of the website. Question 1. At the moment we have one website for UK English and one for US English .com/en-gb/ .com/en-us/ Which would be the pros and cons of merging the two website in one? Question 2. For the German website they moved it under .de dominion, I think it would be better from an SEO perspective to have it as the Italian and French, under .com/de Which would be the pros and cons of migrating German website under .com/de? Thanks
Local Website Optimization | | albertoalchieriefficio0 -
Add Content to Page or Create New Page?
We are doing some local SEO for our business which is in 10 cities. We have built a city page with unique content for each city and linked to a unique contact page with contact information unique for each city. The content on our existing page is fairly thin. 2/3 of it is the same amongst all pages as our services are the exact same from city to city so the description ad menu of our services. Then 1/3 of the content is unique to the city which is a stock photo and 1-2 paragraphs of text containing about 175 words. We have another chunk of content for each city which is probably 2-3 paragraphs but each paragraph will be short so probably in total 200 words in 1-3 paragraphs. The subject of the content is related to one of the most popular search queries that are location specific. For example, if we were a company that provided say, environmental remodeling services in city X, this second chunk of content might be about required building permits when doing remodeling in City X and how to get them, how much they cost. If the original content on the pre-existing landing page is already pretty thin, is the SEO effect going to most likely be better to add the content to the existing page or, even though it's less than 200 words, add the content to a separate page and cross link between the main city page and the city contact page.
Local Website Optimization | | SEO18051 -
Seeking advise about my new landing pages for different cites
I have just created 6 new location landing pages for my Dallas insurance agency. Each one is for a different city, but I have a feeling I did it wrong 😞 Because my site is rather large, I put two different lines of insurance on each page. Homeowners insurance and business insurance. Now I'm wondering if I should of done 12 different pages? i.e **1 city + 1 product = 1 page ** Here's one of the new pages: http://thumannagency.com/personal-insurance/frisco-insurance I'm having a guess here, but would it be better if the Navigation was; thumannagency.com/personal-insurance/frisco thumannagency.com/business-insurance/frisco ??? Thank you so much in advance!!
Local Website Optimization | | MissThumann0 -
Multiple Websites for a Large Home Service Company
I have a client who offers multiple services, the current website is already huge because they have added on so many new offerings in the last year and want everything above the fold. As I am building out the sitemap for a re-design, they continue to add more services. (HVAC, Plumbing, Solar, Windows, Electrical) I am working on a sitemap for a re-build, but I am still well over 100 pages deep with huge menu's. **My question is what are the SEO pros/cons of breaking the site up into multiple websites? **
Local Website Optimization | | Lauren_E2 -
How does duplicate content work when creating location specific pages?
In a bid to improve the visibility of my site on the Google SERP's, I am creating landing pages that were initially going to be used in some online advertising. I then thought it might be a good idea to improve the content on the pages so that they would perform better in localised searches. So I have a landing page designed specifically to promote what my business can do, and funnel the user in to requesting a quote from us. The main keyword phrase I am using is "website design london", and I will be creating a few more such as "website design birmingham", "website design leeds". The only thing that I've changed at the moment across all these pages is the location name, I haven't touched any of the USP's or the testimonial that I use. However, in both cases "website design XXX" doesn't show up in any of the USP's or testimonial. So my question is that when I have these pages built, and they're indexed, will I be penalised for this tactic?
Local Website Optimization | | mickburkesnr0 -
2 clients. 2 websites. Same City. Both bankruptcy attorneys. How to make sure Google doesn't penalize...
Hi Moz'ers! I am creating 2 new websites for 2 different bankruptcy attorneys in the same city. I plan to use different templates BUT from the same template provider. I plan to host with the same hosting company (unless someone here advises me not to). The content will be custom, but similar, as they both practice bankruptcy law. They have different addresses, as they are different law firms. My concern is that Google will penalize for duplicate content because they both practice the same area of law, in the same city, hosting the same, template maker the same, and both won't rank. What should I do to make sure that doesn't happen? Will it be enough that they have different business names, address, and phone numbers? Thanks for any help!!
Local Website Optimization | | BBuck0 -
Merging two pages into one - bad seo done previously
Hi, I have two pages Page 1
Local Website Optimization | | Syed_Ozair
/stop-smoking-hypnotherapy.php
Page authority: 24 and Page 2
/stop-smoking-in-highgate-north-london-radlett-hertfordshire-and-city-of-london.php
Page authority: 13 with 2 internal links only This was probably done to get more local searches to the page but i think it is a bit spamy. Would it be better to 301 page 2 to page 1 or make it as a blog post and keep it alive?0