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
-
SERP: From page 4 to page 1 to page 4 again -_- ...
Hi there Moz Amigos! So I have this Website: campmusicaladagio.com Right now, our main target keyword is "camp de jour gatineau". The website was on WIX before. So, I created the worpress version and redirected the domain name to the new hosting server (outside of WIX). So before doing the changes, the website was on page 4... After the changes, it went in 1 week on page 1 (lol, WIX sucks so much). After 3 weeks on page 1, it went on page 4 again... I am so confused XD like what the hell happen... Any ideas?
Local Website Optimization | | Gab-SEO0 -
Question about partial duplicate content on location landing pages of multilocation business
Hi everyone, I am a psychologist in private practice in Colorado and I recently went from one location to 2 locations. I'm currently updating my website to better accommodate the second location. I also plan continued expansion in the future, so there will be more and more locations as time goes on. As a result, I am making my websites current homepage non-location specific and creating location landing pages as I have seen written about in many places. My question is: I know that location landing pages should have unique content, and I have plenty of this, but how much content is it also okay to have be duplicate across the location landing pages and the homepage? For instance, here is the current draft of the new homepage (these are not live yet): http://www.effectivetherapysolutions.com/dev/ And here are the drafts of the location landing pages: http://www.effectivetherapysolutions.com/dev/denver-office http://www.effectivetherapysolutions.com/dev/colorado-springs-office And for reference, here is the current homepage that is actually live for my single Denver location: http://www.effectivetherapysolutions.com/ As you can see, the location landing pages have the following sections of unique content: Therapist picture at the top testimonial quotes (the one on the homepage is the only thing I have I framed in this block from crawl so that it appears as unique content on the Denver page) therapist bios GMB listing driving directions and hours and I also haven't added these yet, but we will also have unique client success stories and appropriately tagged images of the offices So that's plenty of unique content on the pages, but I also have the following sections of content that are identical or nearly identical to what I have on the homepage: Intro paragraph blue and green "adult" and child/teen" boxes under the intro paragraph "our treatment really works" section "types of anxiety we treat" section Is that okay or is that too much duplicate content? The reason I have it that way is that my website has been very successful for years at converting site visitors into paying clients, and I don't want to lose aspects of the page that I know work when people land on it. And now that I am optimizing the location landing pages to be where people end up instead of the homepage, I want them to still see all of that content that I know is effective at conversion. If people on here do think it is too much, one possible solution is to turn parts of it into pictures or put them into I-frames on the location pages so Google doesn't crawl those parts of the location pages, but leave them normal on the homepage so it still gets crawled on there. I've seen a lot written about not having duplicate content on location landing pages for this type of website, but everything I've read seems to refer to entire pages being copied with just the location names changed, which is not what I'm doing, hence my question. Thanks everyone!
Local Website Optimization | | gremmy90 -
Boost Website Traffic
Tom Beavan Websites is my business where I create and design affordable websites for small businesses in Wordpress. I am looking to improve my traffic to my website as dramatically as possible. At present, my website is a one-page website with limited content - https://www.tombeavan.co.uk. My website ranks #1 for local keywords like: Web design Wiltshire Web design Trowbridge Wordpress developer UK So in terms of keyword position, I am doing well for local business but I only get 200-300 visitors per month. I would like to dramatically improve this to improve the number of enquiries I get. I do tend to get a few enquiries but think if I improve the website traffic, the quantity of website enquiries will increase too? I have a long list of tasks I would like to do for SEO: Add a lot more content to the website Add more backlinks Guest blogging Lots more What would you recommend a good starting place or a place which will increase traffic effectively? Thanks for your advice in advance 🙂
Local Website Optimization | | tombeavan0 -
Search result page
I need an answer how google sees this page. if somebody searches in carhub.com , normally goes to http://www.carhub.com/Results.aspx?CarState=Used&MakeName=BMW&MakeId=ENKWD0M8TR7W&Location=Los_Angeles but pushes the webpage http://www.carhub.com/Results.aspx , User sees the webpage like these.. but not seen any title, description and h1
Local Website Optimization | | carhub0 -
On what pages of my site should I put schema.org structured markup for an Aggregate Review of a Concrete Construction Contractors work?
I have a concrete contractor that I do a site for. He has many reviews from Home Advisor. So I created a Structured Data Markup using HTML5\. I put the the AggregateReview near the bottom of the About Us page at [http://www.skv-construction.com/about-us.html](http://www.skv-construction.com/about-us.html). Question 1: Should I also put the AggregateReview on the home page, or on specific project pages. Question 2: How will Google use the data now if the About page is NOT searched or displayed in SERPs. Does Google display this markup when and where they want to? Question 3: Siince this is a Local Business, should I embed the AggregateReview within the LocalSearch tag. I passed the Google test as it is for the Aggregate Review! But I have the review wrapped in the HomeAndConstructionBusiness tag. Here is the code: "http://schema.org/HomeAndConstructionBusiness"> # Quality Workmanship w 50 Yrs Experience "http://schema.org/AggregateRating"> 4.37 stars-based on 54 reviews at ["http://www.homeadvisor.com/rated.SKVConstruction.18028291.html"](<a) target="_blank">Home Advisor "http://schema.org/PostalAddress"> 10005 Fair Lane <spam itemprop="addresslocality" union=""></spam> IL 60180 (847) 364 0161 ["http://www.skv-construction.com/contact-us.html"](<a)>Contact Us Price Range: All Jobs Custom; Call for Quote or Visit Web Site Would appreciate any help. This markup is so vague, I can see why few people are using it. Maybe you should do a Video training or extended training on how to's. Vernon Wanner 815-332-8062
Local Website Optimization | | VernonWanner0 -
Client with business website as well as franchise site
I have a client who has created a Weebly web presence alongside his provided franchise website. What is my best strategy as he does not wish for the franchise site to out-perform his Weebly presence.
Local Website Optimization | | Sans_Terra0 -
Listing bundle info on site and on local SEO page.
We just finished a new telecom site, and like all telecom sites (think AT&T, Verizon, Suddenlink, etc.), we allow people to put their location in and find internet and phone service packages (what we call bundles) unique to their area. This page also has contact information for the local sales team and some unique content. However, we're about to start putting up smaller, satellite pages for our local SEO initiative. Of course, these pages will have unique content as well, but it will have some of the same content as what's on the individual bundle page, such as package offerings, NAP, etc. Currently this is the URL structure for the bundles: domain.com/bundles/town-name/ This is what I'm planning for the local SEO pages: domain.com/location/town-name-state/ All local FB pages, Google listings, etc. will like to these location pages, rather than the bundle pages. Is this okay or should I consolidate them into one?
Local Website Optimization | | AMATechTel0 -
Reconsideration request failed - New website?
I am looking at website with MOZ PA 34. The website belong to a shop in Manhattan. Simple shop, simple man, not one that do tricks. Reconsideration request failed twice! Never happened to me in the past.. Google ignored some domains in the two disavow files we submitted. All of these domains are asking $ to remove links that as much as I know we didn't even bought 😞 My Question Can I create a brand new domain/website and transfer the PA juice WITHOUT the bad links?
Local Website Optimization | | Elchanan0