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
-
What Should be the URL of third party blog for my website
Hi All, What Should be the URL of third party blog for my website. Lets say if i have a website xyz.com (which provide pest control services in New York City) and I want to create third party blogs on platforms like blogspot, weebly etc so should i create the blog url as xyz.blogspot.com or i can use a keyword in the blog URL such as pestcontrolnyc.blogspot.com? Which URL would be the best as per Google's guidelines. Note: I have already have a blog within the domain as xyz.com/blog/ and i do weekly posting on this blog. But at the same time i want to create 1-2 third party blogs to get some backlinks from other sources.
Link Building | | Mr.Suren0 -
External links to my non-indexed pages
If an external site links to one of my non-indexed pages, will that still pass link juice and help with my domain authority? Thanks!
Link Building | | mztobias0 -
Any Instant Indexeing social Bookmarking sites available on search engine or not?
I want to that my backlinks are instant indexed, so is any social bokkmarking sites availble when backlinks can instant indexed then please answer me.
Link Building | | renukishor0 -
URL parameters affecting link juice
I have a couple of quirks in my online shop that I'm ironing out. One of them is adding some URL parameters to product links.ie: website.com/product.html?&cat=0&featured=Y If someone links to this URL, will I get the link juice as if it was website.com/product.html ? I have URL parameters in Webmaster Tools and robots.txt set up to ignore them so they're not in the Google index, but I have found a few websites that have linked to us using these longer URL's and I'm wondering whether to write to them and ask them if they mind changing them or not.
Link Building | | sparrowdog0 -
Separate blog url helpful?
I am managing a website for a hotel brokerage firm. The main URL is www.hotelassetsgroup.com but we started a new blog with the URL www.hotelsforsaleblog.com. We chose the blog URL because it has the words "hotels for sale." The main website has a tab at the top titled "Blog" which links to the blog URL. I am not sure if this is helping us or not because the main URL and blog URL are both competing for the name of the business "Hotel Assets Group." The blog has very little interlinking within the same URL because it mainly links to the main website. Should we combine the two URLs together and just have the blog URL be the same like- hotelassetsgroup.com/blog or something like that?
Link Building | | lwilkins0 -
I want to know that which is better option for link building through article submission.
which option is better for Link building through Article Submission and why? 1. submitting one article at 100 websites. OR 2. submitting 20 articles at 20 different websites.
Link Building | | pawankatak0 -
Link Spamming or Not? Block Internal Search Results From Indexing?
We are looking at providing our customers with the best experience when performing a site search for a product. Would it be bad SEO practice to have our internal search results show results for all 4 Brands linking to different domains? This would mean multiple outgoing links to other owned sites from the same IP. Is it a best practice to block internal search results using robots.txt?
Link Building | | SEO-Team0 -
How often is a page indexed by google.
Are there any rules according to PA/DA how often a page is visited by google and how quick links there are picked up? For instance PA42/DA37 mR and mT both around 4,4 Thanks
Link Building | | danlae0