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
-
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 -
Redirect 301 multiple url to frontpage
I have a lot of /dummy.php/xxx pages that i would like to redirect to the front page. /dummy.php/100
Link Building | | Morten-Hjemmesider
/dummy.php/101
/dummy.php/102
..... redirect 301 /dummy.php/WILDCARD http://www.domain.com I can not figure it out?0 -
Gifly.com: url structure for new site with only one kind of page
Hi, we are launching a new site called Gifly.com, it's all about Gifs. At the moment, our robots.txt is blocking everything because we want to have a solid url structure before going public. There is only one kind of page, the permalink which has this form: http://gifly.com/QPmf/ (the four characters 'QPmf' are completely random) What we made different from the multitude of other Gifs site is that we are
Link Building | | mylittlepwny
trying to categorize gifs with hashtags, so we introduced these kind of urls: http://gifly.com/FoYi/
http://gifly.com/FoYi/#fail
http://gifly.com/FoYi/#blonde
http://gifly.com/FoYi/#dumb This was done for several reason, the first is that each gif can have up to 10
hashtags. Another approach to this could have been: http://gifly.com/fail/FoYi/
http://gifly.com/blonde/FoYi/
http://gifly.com/dumb/FoYi/ ...but we will face tons of duplicated contents for search engines because the same gif
would have 10x permalinks this way. The way we use to navigate between hashtags is via buttons/ajax (see the list of hashtags on the left)
We know that google may have a hard time understanding the site's structure, We'd like to know if the current set of urls, as: http://gifly.com/FoYi/
http://gifly.com/FoYi/#fail
http://gifly.com/FoYi/#blonde
http://gifly.com/FoYi/#dumb could be okay if we provide google a solid sitemap. We are thinking about a first sitemap with the list of hashtags,
each hashtag points to a second sitemap containing the list of new gifs uploaded for said hashtag. Thanks! gifly_logo_r_a.gif0 -
Will removing a 301 re-direct from an old spammed URL drop the links from our profile?
Essentially there is an old page that has been the target of an old school link building agency. There is a 301 re-direct from the old page to the newer version. if I drop the 301 re-direct and update our sitemaps. Will those links be removed from our profile? The old URL passes nothing in actual value & a link building campaign has been running on the new page for over a year.
Link Building | | BenjyH0 -
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 -
Marketing URLs - best practices
Hi, We do have a consistent url structure like http://www.company.com/productname-london
Link Building | | ecnic
http://www.company.com/productname-auckland
etc. Now marketing wants to include each URL in our yearly printed catalogue.
Out of marketing reasons (I agree with that), they think the URLs are too long and should be for example: http://www.company/london
http://www.company/auckland
etc. Our brochure is very important for direct customers and we have a target group that actively uses the internet and social media and therefore will pick up these links. Even if we do correct redirects in the background - couldn't we have the problem
that we have a double set of urls? What do you think about that?0 -
Factors affecting google places citation indexing
I'm sure we have all been there; filling out yellowbook/yahoo/citysearch/merchant circle citations flawlessly, only to wait months and months for google to decide if they're worth 'attaching' to your places listing. I still believe that the number one factor for getting them to stick is consistensy of information, however my question is what factors affect the speed of 'stickiness'. I've implemented google alerts and rss feed/link pinging services to get citations from hotfrog and BOTW indexed almost the same day, however after examing the google places listing, I'm not showing them as listed as citations; which leads me to my next point; that google places could possibly have their own 'indexing rules and speed?' I've heard several suggestions on how to accelerate indexing, and quite a few of them included building backlinks TO these citations to improve pagerank. Do mozzers have any 'foolproof' ways of getting these citations to 'stick' to google places listings within days, or weeks, instead of months?
Link Building | | ilyaelbert0