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
-
How does indexing backlinks affect SEO and search engine rankings?
Indexing backlinks plays a crucial role in the overall SEO strategy and search engine rankings. When search engines like Google crawl and index a website, they also consider the quality and relevance of the backlinks pointing to that site. Here's why indexing backlinks is important: Visibility in Search Results: Indexing ensures that search engines recognize and attribute value to the backlinks you have acquired. When indexed, these backlinks contribute to the overall link profile of your website and can positively impact your visibility in search results. Faster Indexation: By submitting your backlinks for indexing, you can speed up the process of search engines discovering and recognizing those links. This helps search engines recognize the relevance and authority of your website sooner. Enhanced Crawling and Ranking: Indexing allows search engines to crawl and evaluate the backlinks pointing to your site. These backlinks are considered as signals of trust and authority, which can influence your search engine rankings. Improved Domain Authority: When high-quality backlinks pointing to your site are indexed, they contribute to your website's Domain Authority (DA). A higher DA indicates a more authoritative and reputable website, which can positively impact your rankings and organic search visibility. Competitive Advantage: Indexing your backlinks gives you a competitive edge by ensuring that the value and authority of those links are properly recognized and taken into account by search engines. This can help you outrank competitors who may have unindexed or low-quality backlinks. It's important to note that not all backlinks may require manual indexing, as search engines can discover and index them naturally. However, for specific or newly acquired backlinks that may not be indexed quickly, manual submission or using indexing services can help ensure they are recognized by search engines and contribute to your overall SEO efforts.
Link Building | | Morries88880 -
Give a Solution my DA is not increasing and not index my backlinks in MOZ??
DA of my website online is no longer increasing. It seems like Moz is not indexing my backlinks. Multiple backlinks of my website online BasketballShoes are now not indexing in Moz that is why DA is not increasing.
Link Building | | fbowable
Backlinks of my site have indexed in both Ahref and semrush each now not showing in Moz. DR has elevated to 51 however DA is still 7. If all and sundry have the solution please let me know.0 -
Does having '?search' in a URL affect the page quality?
In our Costume Themes category on our website, http://www.costumedirect.com.au/themes/, the links direct to search pages with URLs containing the term '?search'. For example, the 'Edward Scissorhands' link directs to http://www.costumedirect.com.au/search.php?search_query=edward. Will the question mark and 'search' in our URL affect the page quality and rankings? Thank you.
Link Building | | CostumeD0 -
How can a site with no content, non SEO optimized or any value rank better?
I understand there are many more variables to rank #1, but this site is currently #1 for one of our top keywords and I really don't understand what they Competior site barely has 200 words on any given page, very few content other than images with no ALT tags, titles, No H1 tags. in other words the website is not SEO optimized. My site has content, product descriptions, images, relevant titles, and definitely more optimized than competitor. My site VS competitor Total pages: 246 (me) vs 49 (them) Page Authority: 34 vs 26 MozRank: 5.3 vs 4.5 MozTrust: 5.7 vs 5.4 Domain Authority: 22 vs 17 External Links: 65 vs 7 Internal Links 152 vs 1 Followed Links 14 vs 5 More C-Blocks 14 vs 4 Total Social Shares: 127 vs 4
Link Building | | Droidman860 -
SEO Value Of Non-Indexed Links
I have a link built to a site, but it's not showing up in Open Site Explorer and doesn't appear to be indexed currently by Google. Does anyone know of any research done on SEO value if any on non-indexed links? Thanks
Link Building | | EmarketedTeam0 -
Why articles submitted to squidoo not indexed by google
Hi, I have written a few articles and uploaded to squidoo/hubpage last month and they have been accepted and I can see the links in the articles. But they dont appear in the latest link report from Google Webmaster Tools. Is it because it's delay or Google simply wont treat them as valid links? Thanks
Link Building | | LauraHT0 -
Do I get any link juice from a PHP header redirect from another site?
For example would: www.site-A.com/click-tracking.php?site=www.site-B.com contain any link juice? Would a 301 redirect be the simple solution?
Link Building | | David_Viciedo0 -
Why aren't my links being indexed
I am building backlinks from similar sources to 2 different domains. Domain A seems to get its linked indexed within a day or 2, while Domain B has virtually identical links that haven't indexed for over a month. Domain A is older and has more authority, and Domain B is hosted on a different server. Any insight into why this is happening? It's very frustrating.
Link Building | | insitegoogle0