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 a good practice to get link for your original page by shorter URL links
Hello Moz Community, I have a question regarding getting links on bitly, tiny, or an other url shortner, Is it a good practice to get link for your page by shorter url I mean lets suppose i am getting natural guest post link from content for my blog home page
Link Building | | JoeySolicitor
https://coupontoaster.com/blog/ ; and shorten it with bitly and then hyper link so is it a good practice am I getting the same power and SEO consideration as if i would have done this without url shortener. And what anchor texts shall i be using like rich anchor text or any other like click here, visit here, bitly or etc Please kindly help me with this thanks1 -
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 -
I've published my forst infographic and started outreach to get links. Should I use a canonical URL and if so how?
I've published my first infographic and started outreach to get links. I've also submitted it to several infographic directories. Should I use a canonical URL and if so how?
Link Building | | roadhaulageservices0 -
URL purchasing strategy
Hi, At my company we have alot of URLs (around 500), which are purchased for different reasons, some for defensive reasons, some because we think we potentiallly could use them in the future. Now we want to "clean up" this list, in order to minimize costs, butt im unsure about some of the URLs, and have some questions that in some way all are SEO-related. How used are the .xxx domains, we have alot of them of defensive reasons, but im not sure that we have anything to fear, whats your take on that? - and arent .xxx domains excluded by the search engines? We have alot of URLs which we redirect to our main domain, some of them have been their own domains before, and some of them are just redirects. When i remove these, i get two challenges: 1. If someone links to that domain, i wont be able to redirect them anymore. 2. If the domain have a good Page Authority in itself, i loose that link juice. How do i proceed in order to get knowledge about the above two factors, that are crucial in order to decided wheter to keep or delete domains?
Link Building | | Petersen110 -
Some doubt about news section URL
I have a simple question, I have a website and i want to create a news category. I want to know what is the best way to create a url friendly for this category. I was looking around for news website like New York Times, and others, they use a format like this for the url http://domain.com/year/month/day/category/ etc. My question is about the use of the date in that format, like subdirectory, can somebody explain me about it. Any reason to use this format? What is the diference between using this format like: http://domain.com/news/çategory/article-date-id.html and this one use for the new york time shown before. Wich one will be work better? Thank You so much for your help
Link Building | | NorbertoMM0 -
Are 36 links from one site to nested pages better than one link to the root domain?
I have a Driving School website www.1stclassdriving.co.uk. The site is structured geographically with 36 area pages, one
Link Building | | Brian_Worger
page per area post code and one page per Driving Instructor. I am trying to develop links and have found a site (da91 pa
63) where I can create area links to each of my area pages if I
wish. Is it best to just create one link to the root page or
should I create 36 individual links to each area page? - which is most valuable?0 -
URL in signature of discussion forum post
I used to see URL's in the signature part of discussion forum posts covering various topics but it does not seem popular anymore. It seems like a good way to build links and I am wondering why it is not used. Suppose I ask a question about proper tooth brushing technique on the forum at "toothbrushingforum.com" and user "ToothBrushWizard" is nice enough to answer my question. I used to see signatures like this: Good luck,
Link Building | | superTallDan
ToothBrushWizard
www.ToothBrushWizard.com Is this considered poor taste or are these links discounted by the search engines? Is it best to keep an updated profile with your URL and hope that forum users click through to it?0 -
Linkbuilding URL Problem
Hi, I work for Perfectly Engraved. A lot of our links point to http://www.perfectlyengraved.co.uk/. However that address forwards to - http://www.perfectlyengraved.co.uk/ecommerce/scripts/default.htm. Should we ensure our links point to http://www.perfectlyengraved.co.uk/ecommerce/scripts/default.htm or does it not make difference? I've put our forwarding code below. <%@ Language=VBScript %> <% Option explicit Response.Buffer = true Response.Redirect "http://www.perfectlyengraved.co.uk/ecommerce/scripts/default.htm" %> Also, would it help if we did a 301 redirect from http://perfectlyengraved.co.uk/ecommerce/scripts/default.htm to http://www.perfectlyengraved.co.uk/ecommerce/scripts/default.htm? As both addresses for every page on our site return the page with or without www Thanks
Link Building | | Aardvark0