Index.php OR .php - Which is better for urls
-
I was wondering. When I build links should I build them using "index.php" OR ".php" at the end? Does one have any more value than the other from an SEO standpoint
Example:
www.mywebsite.com\hotdogs\index.php
or
-
What do you mean by (3) it doesn't reveal your underlying platform? I don't think URL structure would be of much concern here, especially if you where experienced in exploiting websites? Maybe I'm wrong, not to sure what you are referring too.
In regards to you leaning towards this one, surely posting it as a directory /hotdogs/ implies that it is that, a directory and not a just a page about hotdogs? I'm digging a bit to deep into this, as I'm sure it won't make that much of a difference, but I'm just saying, it seems more logical to have it .php or .html
-
I lean toward this one, too, but Google has no particular bias against dynamic pages. SEOs use to warn against using "dynamic" URLs, because they tended to include a lot of parameters and create duplicate content, but there's plenty of evidence that ".php" pages are perfectly fine.
To me, it boils down to:
(1) As TraxNYC said, all else being equal, shorter is better
(2) It looks a bit friendlier to search visitors (and easier to read)
(3) It doesn't instantly reveal your underlying platform (and pose a security risk)
-
I would use hotdogs.html, not that it makes much difference, but I personally prefer it so it doesn't look like an auto-generated page. If your planing on having a lot of hotdog related content I would defiantly go with /hotdogs for it all.
-
I would recommend www.mywebsite.com/hotdogs/.
-
The shorter the better! By including keywords inside of the link will help crawlers to better understand whats that particular url about.
Good Luck
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
-
Internal links: How do I find keywords that are not linked to a URL?
Hi Moz members I'd really like to place an internal link of every instance of an important keyword phrase "cycling caps" or "cycling cap" to my eComm category page
Link Building | | andystorey
https://www.prendas.co.uk/collections/headwear/cotton-caps I feel this would not only help my customers browsing my store, but I believe it will help from an SEO perspective. How can I search my site using Moz, Screaming Frog, Google etc to find every time cycling cap(s) is used but is not linked to the above URL? I can then apply the same for cycling jerseys, socks, etc Andy0 -
Better to place linked-back article or post article and seek multiple links?
Which option is better for SEO purposes: 1. Author article for trade journal in return for link back to my home page. 2. Post article on my site and solicit links from multiple sites. Assume links all have moderate authority.
Link Building | | Lysarden0 -
Central Index Directories
Hi all, I'm based in the UK and i'm looking to submit to a several directories under the central index umbrella, for example to these directories: http://findit.chad.co.uk/ http://directory.nottinghampost.com http://directory.burtonmail.co.uk/ I've filled my profile out and have submitted to one of the above directories, however when I sign in to one of the other directories it asks me to re-fill out all my details. Is there not a way i can submit to several of these directories by signing in without confirming my telephone number for each one ? Many Thanks in advance Paco
Link Building | | paco87230 -
Is it better to have micro-sites with good content or redirect domains?
I have a domain with a lot of content and it is an eCommerce site. I've just been told that we have another 12 domains that are inactive and do not redirect. I don't know what to do with them as they haven't been used for ages and do not direct or have any content (max of a DA or 4). Therefore which is better for SEO? To have really good content with perhaps a few regular blog posts on each of the 12 domains, or to redirect all of the domains to the one main domain? I would take 1 domain and put a lot of content on and optimise is.. spending a few weeks on one and then move onto another, all while posting on each blog on each domain. Thank you for any help! 🙂
Link Building | | schloeee0 -
How to index Backlinks Fast in Google!
I Made few backlinks with my keyword but they are not getting index and it has been for 15 days. Do you have any idea that will help me out to solve this problem and also to index back links quickly.
Link Building | | rohitdeveloper0 -
Google index broken link ?
Hi .
Link Building | | tuananh0688
This is my site http://blog.addme.vn . It published about 3 weeks ago . I have some problem with google index : When my site published about 3 days , submit site map on google by google webmaster tool . Google index all link summited .But i found dublicate content with link and i edited all structure links and sumited again.
Now when google search on you see 2 link old and new . But link of old site map has broken .How to solve this problem .0 -
Manually Submitting To Google Index
Whenever I structure a page for seo optimization & add new content, should I be manually submitting these urls to google via webmaster tools? Thanks!
Link Building | | TP_Marketing0 -
Better to redirect domain or to link from home page?
Hi, I have a niche directory and sometimes clients remove themselves because they have discontinued their business practice. If they sometimes provide me with their own website (as they will no longer use it either), is it wiser for me to: a) directly point their URL 301 to my own directory b) keep their website as is, and add a url link to my directory in their homepage c) keep their website as is, and add an anchored link with the industry keyword to my directory Thanks! D
Link Building | | Demosthenes0