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
-
Is it better to develop a good keyword I found on a new page on an established website or make a new site?
So I found a keyword that I want to go after, it gets over 30k searches a month, has a 100% CTR and has a difficulty of 42. Now my question is would it be better to build a page on our already established site (DA of 46) since the site and keyword are both related. Or would it be better to get a domain of that keyword and build a small site about it? The .com is taken but I could get a .co or .us just not sure if its worth making a new site or if I should just build a page on my current site about it.
Link Building | | americancasinoguide0 -
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 -
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 -
Page Indexed?
Hello I register to berkly forum and put my link on my signature. but this link doesn't calculate for my website? Is this page indexable? http://opensees.berkeley.edu/community/viewtopic.php?f=6&t=30350
Link Building | | allyunit0 -
Does more product pages mean better rankings?
We've recently been told that one of reasons why our site doesnt rank as well as a particular competitors because they have much more product pages than us. We can see that they have better quality links, which we are working on improving, which we sort of understand can be helping them beat us, but we didn't think that they would be ranked higher just because of more products. They also do not have much interesting blog / content on site. So should our limited resources be focused on getting better links, better content, or increasing our depth of product range? Thanks all.
Link Building | | onwardsandupwards0 -
PHP Redirection better than Nofollow?
Hello, if I have affiliate outbound links in my blogs, what's better in terms of SEO, to use PHP Redirection or Nofollow for those links? For example, instead of using nofollow for the outbound affiliate links, I can use some plugin for WordPress that does this: mydomain.com/affiliatesitename1 -> redirects to the affiliate link1. mydomain.com/affiliatesitename2 -> redirects to the affiliate link2. mydomain.com/affiliatesitename3 -> redirects to the affiliate link3. Is this better? Thanks.
Link Building | | BloggerGuy0 -
Which is better - A) links from multiple IP addresses, or B) Links with more associated social signals?
If you had to choose: A) 100 links contained in posts on 100 PR2* blogs, all on separate IP addresses, where none of the posts had associated social signals, or B) 100 links contained in posts within a single PR2* blog (single IP address), where each of the posts had 20 associated social signals, Which would you choose to increase your SERP performance? *I chose PR2 so that PageRank would not be a factor in the decision.
Link Building | | JohnScottDixon0 -
How to find all banklinks for a URL that forwards to a main URL
I have a client (yea! my second one doing seo) who has a law firm. He has a main site and then another site that just forwarded to his main website. He wants to find all the directories (and other places on the web) where his second site is listed. At the time when he was adding his firm into the directories, he was using his secondary url but now he wants to go back and use his main website. Unfortunately, he doesn't have a log of every place he added himself. I tried just searching Google for "mysecondarywebsite.com" (in quotes)for example but the SERPS return listings that aren't right. Suggestions?
Link Building | | Czubmeister0