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 -
Which backlink is better for increasing my MOZ DA ?
Hello Moz Community, I have sports niche website bongdatructuyen.site. I am in process of link building for my website. May i know what should i do to increase DA of my site? Is there any way to increase my site Authority through increasing DA of my site and Keyword difficulty? Thank you !
Link Building | | gogoanimetp0 -
Should my URLs with or without a slash? And how to avoid multiple redirects?
Moz, I am noticing that I need to go back and update my outbound links to your site. There are a lot of them because your content is so great and we love you guys. Could you explain your logic for making the change? Example on my Schema Markup Website Audits page: https://moz.com/blog/state-of-searcher-behavior-revealed/ redirected to: https://moz.com/blog/state-of-searcher-behavior-revealed
Link Building | | jessential0 -
Linkbuild on 'new' or 'old' url?
Hi, I'm trying to rank for a keyword. For the last year and 4 months the rank hasn't changed much. It stays on the 3th page. Within this period the rank has first gone down and then up. Three months ago I started doing linkbuilding for the url the keyword was linked to. This is a main category page. Lately, I don't know when exactly I've discovered that the keyword is ranking for a different url, a product category of these items for 1 brand. I'm wondering if it's wise to shift my focus and start using the 'new' url for linkbuilding? The 'old' url isn't in the top 100 for the keyword. However, if you search for the url in Google, it shows up. And, if I'm advised to shift my focus to the 'new' url, is it advisable to go back and change the backlinks to the 'new' url? A question related to the above one, is there another tool like Open Site Explorer which shows you an overview of the backlinks directing to a deeplink? Like MajestickSEO. I'm trying to get the most extensive overview possible. Thanks in advance.
Link Building | | anubis20 -
Redirect from a previous url
Hi - newbie question I have a customer who's had previous versions of his website. Previously it was known as "princess-interiors.co.uk" (been around for a few years) and is now "princess-design.co.uk" (been around also for a few years). New site is WordPress - what would be the best way to redirect (I have access to the previous version of the site which is still hosted). I expect it's to use 301, but how would I do that (step by step), and does www. versus non-www need addressing (and how). Really concerned, as this site has gone to zero organic visits!! Hoping somebody can help. Thanks
Link Building | | Gokart0 -
Are links from charities really better than 'normal' links.
Hi Guys. Just wondering about this idea that links from Charities are particularly good. I've heard people say that links from .org sites are particularly strong. But anyone can get a .org domain, it's just that charities tend to use them more often. Right? I just don't get the logic. Can anyone give more detail about this? Is it a myth? Is there quality info on this topic I can check out? We're working with several charities at the moment, and they all seem happy to blog and link to us...so I just wanted to know a little more. Isaac.
Link Building | | isaac6630 -
Buying Branded URL's
Hello A competitor of mine has a bunch of branded terms that they purchased, with backlinks point to their main site, is there a specific reason they do this? If I analyze the links on the "branded url" theres it has very little juice/authority? Is it worth it to do this? ex www.siteCOUPON.com. or www.mainsite.biz I have a .ca and something similar to our site re-directing through register.com in Iframe. But would they just be using those terms because it has high search volume? Would this help me in anyway? Thank you!
Link Building | | TP_Marketing0 -
Making sure links get indexed by google?
Hi I currently submitted to 30 seo directories & I just want to make sure my links get indexed by google so the link value passes onto my site. Any suggestions about getting my links indexed? I was thinking of either pinging or social book marketing the links! What's your view, thanks.
Link Building | | Socialdude0