Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
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 -
Total Exact Match Anchor Text Percentage or a Few High Quality Exact Match Backlinks, which is better?
Hello, I was wondering if anyone could help me. I am trying to rank a web page for a competitive regional search term. Upon inspecting all the competitors’ backlinks they appear to using an overly high exact match anchor text to rank on the first page for this keyword. Somewhere in the region of 15 – 55% exact match anchor text. So the question is what does big G provide a heavier weighting for, A.) The total percentage of exact match anchor text for all your backlinks, until it reaches the point of over optimization. A higher percentage up to about 60% will help you rank in the top 3. Meaning I should change a 1,000+ backlinks on multiple domains to the exact match anchor text. B.) Or just a few backlinks with the exact match anchor text but from really high quality domains with a ‘Majestic SEO’ Trust and Citation Flow above 40. Any help would be appreciated, exact match anchor text is meant not to work but it still does.
Link Building | | tomfifteen0 -
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 -
How does this site rank higher than a seemingly better one??
Ok, I'm really trying to wrap my self around all this SEO stuff. Right when I think I'm grasping it, I come across something like this. When running a keyword difficulty report for the term "essay editing", the top two results are: www.papercheck.com/essay-editing.html www.gradesaver.com/essay-editing/ The first result has a PA of 37, 2 linking page domains, DA of 48, and 197 root linking domains. The second has a PA of 65, 32 linking page domains, DA of 68, and 2,572 root linking domains. What the heck is going on here!?!? I can't understand it. I checked anchor text and that doesn't appear to be it. The only thing I can find is that the papercheck has a link from a site (marketwire) with a DA of 90 while the #2 guy's highest linking domain has a DA of 60. However, I have a really hard time wrapping my head around this considering the total linking domain stats compared to one another. Any insight is much appreciate... this is frustrating trying to grasp these situations! Thanks!
Link Building | | Kibin0 -
Will Google penalize for backlinks on non-indexed pages?
Have a client who has a bunch of links from spammy sites that aren't even indexed by Google. Will Google penalize (i.e. Penguin) for backlinks from spammy sites that aren't indexed? I'm guessing "Yes, Google still crawls non-indexed sites and may penalize the sites linked to from the banned site." Anyone have any data or experience with this? Anyone have a non-indexed or banned site? Does Google still crawl it?
Link Building | | AdamThompson0 -
URL shortener and backlinks
Are there any SEO benefits drawn from creating backlinks with Google url shortener service(especially for the very deep links) or for the do-follow link juice I have to use a complete address?
Link Building | | SirMax0 -
Shortened url vs. anchor text
Are there any benefits to linking a shortened url vs. an anchor text when I am link building?Would linking via shortened link such as tinyurl cause problems with SERPS? Also, would it be more beneficial to short link to the homepage or landing page?
Link Building | | Modbargains0 -
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