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
-
Meta descriptions in other languages than the page's content?
Hi guys, I need an opinion on the optimization of meta descriptions for a website available in 6 languages that faces the following situation: Main pages are translated in 6 languages, English being primary >> all clear here. BUT The News section includes articles only in English, that are displayed as such on all other language versions of the website. Example:
Local Website Optimization | | Andreea-M
website.com/en/news/article 1
website.com/de/neues/article 1
website.com/fr/nouvelles/article 1
etc. Because we don't have the budget right now to translate all content, I was wondering if I could add only the Meta Titles and Meta Descriptions in the specific languages (using Google Translate), while the content to remain in English. Would this be accepted as reasonable enough for Google, or would it affect the website ranking?
I'd like to avoid major mistakes, so I'm hoping someone here on this forum has a better idea of how to proceed in this case.0 -
Can I have multiple GeoShape Schema for one page on one domain?
Hi Mozers, I'm working on some Schema for a client of mine, but whilst doing the research on GeoShapes with my developer, we came across a potential issue with this particular mark-up. My client is B2C business, operating in numerous places across the UK. I want to use the Circle property from GeoShape to draw out multiple circles across the UK, but am I able to do this? From looking at some other websites, most seem to just have one GeoShape. Can I have multiple on the same page and same domain? Thanks! Virginia
Local Website Optimization | | Virginia-Girtz0 -
Leveraging the authority of a blog to boost pages on a root domain.
Hi! Looking for some link building advice. For some background, I work for a company that has over 100 locations across the US. So we are deeply involved with local SEO. We also do a ton of evergreen/ national SEO as well and the spectrums are widely different for the most part. We also have a very successful blog in our industry. It really is an SEO’s dream. I do not even need to worry about a link strategy for this because it just naturally snatches them up. I’m trying to find some unique ways to utilize the blog to boost pages on my main root domain, more specifically, at the local level. It is really hard, besides the standard methods for local link building, to get outside sources to link to our local office pages. These pages are our bread and butter, and the pages we need to be as successful as possible. In every market we are in, we are at a disadvantage because we have one page to establish our local footprint and rank, compared to domains that have their entire site pointed at that local area we are trying to rank in. I’ve tried linking to local office pages from successful blog posts to attempt to pass link juice to the local pages, but I haven’t seen much in terms of moving the needle doing this. Are there any crafty ideas on how I can shuffle some internal linking around to capitalize on the blog’s authority to make my local pages rank higher in their markets? Thank you! -Ben
Local Website Optimization | | Davey_Tree0 -
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 -
Migrating to new website with new name and new content
Hi for the past few years I have been running a personal training company from the following domain name www.smpt.me. This has done well in the past and so has some authority in google as it was ranking well on page 1. Over the last 6 months I have set up a new website with some new business partners using the domain name www.healthbyscience.co.uk. This new website, whilst still a personal training website, has different content to the original. We want to use the new website rather than the old one and therefore my question is how I can use the old website to assist with the new website. Thanks
Local Website Optimization | | Health-by-Science0 -
URL and title strategy for multiple location pages in the same city
Hi, I have a customer which opens additional branches in cities where he had until now only one branch. My question is: Once we open new store pages, what is the best strategy for the local store pages in terms of URL and title?
Local Website Optimization | | OrendaLtd
So far I've seen some different strategies for URL structure:
Some use [URL]/locations/cityname-1/2/3 etc.
while others use [URL]/locations/cityname-zip code/
I've even seen [URL]/locations/street address-cityname (that's what Starbucks do) There are also different strategies for the title of the branch page.
Some use [city name] [state] [zip code] | [Company name]
Other use [Full address] | [Company name]
Or [City name] [US state] [1/2/3] | [Company name]
Or [City name] [District / Neighborhood] [Zip Code] | [Company name] What is the preferred strategy for getting the best results? On the one hand, I wish differentiate the store pages from one another and gain as much local coverage as possible; on the other hand, I wish to create consistency and establish a long term strategy, taking into consideration that many more branches will be opened in the near future.1 -
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 -
Moving to a new Location: SEO Website
I'm moving to a different state and want to keep my business and clients in both locations. Is it better to build two separate sites, one for Ohio locations and create a new site for Tennessee content? (www.ohiosite.com & www.tennesseesite.com) Or is it best to keep one site, and install a second wordpress site in a separate folder like ( www.site.com + www.site.com/tennessee )
Local Website Optimization | | morg454540