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
-
Looking to create a "best practice" doc on location pages. Anyone know of a useful resource?
I'm working for a few regional brands and would like to create a best practice doc for the structure of a location page. Has anyone seen anything recent regarding a structure for local, regional and national pages? Thanks all, Kevin
Local Website Optimization | | Kevin.Bekker1 -
Even after doing every possible thing required for SEO my client's website is not coming on top.can you tell me where i am lacking?
_ Hi team_ I have been working on a website called signboards.co.in since 4 months.it was not in top 100 but now below 50 for 2-3 keywords.even after submitting in many directories after competitor analysis moz shows only one external link in its link metrics.apart from this every possible thing required for SEO is done in a proper way,but still it is not giving results.can you help me out?all my other clients work is going good except this one.can you please let me know what is going wrong with my project?As the project submission date is near i need your help as soon as possible. Thanks Najia jehan
Local Website Optimization | | Najia-ali0 -
One locations page, or multiple pages?
Hi, I represent a franchisor who does all marketing- including local seo- for our franchisees. I've read a lot about local SEO and understand the basics, but have some remaining questions. 1- If our typical territories are quite large and encompass more than one major city, should we create multiple location pages for the same franchise owner? I believe the answer should be yes from an SEO stand point, but the problem is that most of our franchisees naturally just have one business address (their home). Since PO boxes and virtual offices aren't the way to go, what's the best course of action? And when I say major cities, I'm really talking about major cities (and not just small towns/boroughs). Can they just use a friend's/relative's address? 2- There's a lot of info out there about "locations pages," but it's not really clear whether or not you should really just have ONE page for each location, or several pages with different content? For instance, it looks like a lot of businesses are creating just one, "home-page" looking landing page for their individual locations, with everything from services to testimonials on just that one page. Is this preferred over creating several different local pages for that one location? The latter is what we currently do. From the user stand-point, it looks like each franchise location has it's own "mini website" on our main website. For instance, a landing page optimized for the local business name, a local services page, a project/photo gallery page, local review page, etc. It seems like a lot less work just building one landing page for each location, but is the payoff the same? I'm torn between the two strategies- is it really worth the extra work (in terms of traffic + local ranking) to build out the individual pages for the one location? Thanks Moz Community!
Local Website Optimization | | kimberleymeloserpa0 -
I can't get my page to rank. What am I doing wrong?
I'm new to this forum and this is my first question. So if I'm not supposed to ask this type of question, please forgive me. I'm trying my best to get http://www.westcoastflenterprises.com/#!roofing/bbb1e to rank on the first page in Google for "roofing contractors" in the following SW Florida cities: "Naples, Bonita Springs, and Fort Myers." Our company has a physical address in Fort Myers only so I understand it's going to be harder to get it to rank for Naples and Bonita Springs. But I can't even get this page to rank well for "roofing contractors in Fort Myers." The page authority is 25 and our domain authority is 27. Our home page authority is 39. Our primary category in Google is building restoration & preservation. But we have divisions in our company: Roofing Concrete Ornamental metals I would love it if our roofing page could rank higher than the third page, which is where it currently sits. I worked really hard to get each of our roofing-material manufacturers to link directly to our roofing page, not the home page. My hope is that you can help me because I'm really discouraged. Thanks in advance.
Local Website Optimization | | Jason_Taylor0 -
Local Service pages guide?
There are a lots of Local landing pages guide on the internet. Is there any guide for Local service pages? How to create them, what to include?
Local Website Optimization | | Michael.Leonard0 -
Multi-Country Multi-Language content website
Hi Community! I'm starting a website that is going to have content from various countries and in several languages. What is the best URL structure in this case? I was thinking of doing something like: english name of the plant, content in english, content for USA:
Local Website Optimization | | phiber
www.flowerpedia.com/flowers/red-roses spanish name of the plant, content in spanish, content for MX:
mx.flowerpedia.com/es/rosas/rosas-rojas english name of the plant, content in english, content for MX:
mx.flowerpedia.com/roses/red-roses
this content is not the same as flowerpedia/flowers/red-roses Content for Mexico would not exist in languages other than english and spanish. So for example:
mx.flowerpedia.com/jp/flowers/red-roses would not exist and it would redirect
to the english version:
mx.flowerpedia.com/flowers/red-roses What would be the best URL structure in this case?0 -
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 -
Sub domain for geo pages
Hello Group! I have been tossing the idea in my head of using sub domains for the geo pages for each of my clients. For example: one of my clients is a lawyer in a very competitive Atlanta market http://bestdefensega.com. Can I set his geo page to woodstock.bestdefensega.com? Is this a viable option? Will I get penalized? Thoughts or suggestions always appreciated! Thanks in Advance
Local Website Optimization | | underdogmike0