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
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
-
Very old site wanting a revamp - how to handle all the redirects/URL changes
Hi all, I have a very very old site, that requires a facelift (going from an old clunky CMS to wordpress). A problem I know I am going to face is that this site has a very poor URL structure (www.site.com/section/1/section/ etc) which I plan on cleaning up. but how do I handle the 100+ backlinks this website has point to such links? If someone could point me in the direction of an article or such that would be great. Thanks,
Link Building | | Greenroads0 -
Is it better to have backlinks from domains with medium DA, UR, using same language and good relevancy, or backlinks from domains with high DA, UR but using another language and with less relevancy?
Dear all, while I understand that quality backlinks with high DA, UR, same-language and relevancy would be best, would backlinks with high DA, UR but less relevancy and using languages other than the one used in my website be something good? Or would they do more harm than anything else and still be outcompeted by backlinks with lower DA, UR but same language and/or more relevancy? Thank you Frank
Link Building | | Frank_Smith0 -
Having some problems with understanding how to properly use anchor text for my keywords' better rankings. Please help!
Hello, Last week I did some work on my website's inner pages linking and some of my highly ranking keywords fell down as a result. I guess I did something wrong, please help me figure out what exactly was wrong! Here is the example of what I did. I put a link to the page that ranks for 'Thermador repair Brentwood' here: http://www.ifixappliancesla.com/blog/2016/09/12/appliance-repair-brentwood/ I put exactly same anchor text, 'Thermador repair Brentwood'. For my blog posts, I use Yoast plugin, so when adding the link, I received the message "You are linking to another page with the focus word you want this page rank for. Consider changing that if you truly want this page to rank." While this one's ranking, 'Thermador repair Brentwood', didn't fall down, others did. Could you please confirm if my understanding is right and I'd better not use the same keywords on two or more pages? If yes, what is the best practice for linking to the pages that are not in the main menu? Let's say, I decided to do blog posts for the areas my appliance repair company serves and to optimize those pages for respective keywords. So, I have pages like "Appliance Repair Service in Brentwood" (which is optimized for "appliance repair brentwood" keyword), "Appliance Repair Service in Beverly Hills" ("appliance repair beverly hills" keyword), etc. I thought that the best way to link to them is to put the same anchor texts: "appliance repair beverly hills", etc. But it looks like the best way would be to use the anchor texts like "Beverly Hills", "appliance servicemen in Beverly Hills". Please tell me if I am right? Any explanation, advise or referral would be much appreciated! Thank you!
Link Building | | kirupa0 -
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 -
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 -
Buying keyword urls for local traffic
Hi, I've been told that there is a real benefit in buying up local domain names and setting up mini adverts to your core website... is this actually true? Seems a strange practice. Example: If I had a car cleaning site called 'MozCarCleaning.co.uk' and the company was based in London. Then I'd buy related domains, 'LondonCarCleaning.co.uk' , 'CarValetLondon.co.uk' and make mini websites which then link to the main site. Alternatively, would it be worth just 301 redirecting directly to the core site? Thanks.
Link Building | | MatthewJamesRiley0 -
Changing url from non www to www.
basically I have realised i have more page authority and links going to www.onestopmuscle.co.uk instead of onestopmuscle.co.uk. I use wordpress and have no clue how to make sure onestopmuscle.co.uk redirects to www. version. anyone have any ideas? I don't want to mess about with files or i'll most likely make the blog into a disaster.
Link Building | | FLEAR0 -
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