Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
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
-
Does no-indexed page has an impact on bounce rate
my question is: I have a page that contains some external links, I know when visitors click on them and leave my site it hurts my bounce rate, But I have a solution for that, I am using external link redirection code, with this code after users clicking on external links they are not leaving my site and first went to some link like this: "http://mysite.com/redirect/https://externalsite.com/" and after 10 seconds they redirect to the external site, I make this redirect page noindex and nofollow. but the question is does this noindex page can decrease my page bounce rate because users don't leave my site and first go to another page of my site. but I don't know does no-indexed page has an impact on bounce rate or my struggle is worthless
Link Building | | mmohammadi1250 -
Reversing Canonical URLs?
A few months back, we set up canonical URLs on some pages with duplicate content to give some newer pages more link juice. Now, we need to do the opposite and give that same juice to some of the original pages. If we set up canonical URLs on the newer pages to point back to the original pages, are we losing the juice we've been building all along? Sorry for all this convoluted juice talk. Hopefully, my point is getting across here.
Link Building | | frankmassanova0 -
Any Instant Indexeing social Bookmarking sites available on search engine or not?
I want to that my backlinks are instant indexed, so is any social bokkmarking sites availble when backlinks can instant indexed then please answer me.
Link Building | | renukishor0 -
Adding keyword to your url
Couldn't find the answer to my question anywhere so I'll give it a try here. If you have a site called www.example.com, and then want to add a keyword to this site, like this: www.example.com/keyword How do you add a keyword to your url like this? Without making the URL with the keyword your "main" URL, meaning you don't have to enter the keyworded URL to get to the homepage (www.example.com), and still rank better on the keyword put in the url. I'm a bit confused on the subject, would love for someone to help me understand! Thanks.
Link Building | | danielpett0 -
Will Google penalize for backlinks on non-indexed pages?
Have a client who has a bunch of links from spammy sites that aren't even indexed by Google. Will Google penalize (i.e. Penguin) for backlinks from spammy sites that aren't indexed? I'm guessing "Yes, Google still crawls non-indexed sites and may penalize the sites linked to from the banned site." Anyone have any data or experience with this? Anyone have a non-indexed or banned site? Does Google still crawl it?
Link Building | | AdamThompson0 -
Linking to root domain or index page
While link building, should I link to index page of my website i.e www.mydomainname.com/index.html or should I link to root domain i.e www.mydomainname,com Also I see duplicate title error for index page and root domain in error statistic. How can I get rid of this.
Link Building | | ArtiKalra0 -
Backlink booster - boosts and helps to index links?
Hello all, We are using a tool called backlink booster that works in the following way: you view a page with a backlink to your site click on a boost link saved in favourites the link is pinged to rss directories and web 2.0 sites The idea is to get your links indexed faster. Has anyone used this or something like this and had any benefit from it? Thanks Shehzad.
Link Building | | Gareth_Cartman0 -
Why doesn't the Better Business Bureau show up in my link analysis
I've been working on SEO for one of the companies I've designed a website for and I'm confused by the company's lack of Better Business Bureau backlinks. The Company in question does have a BBB account and that account links back to the company's website. However, when I check in the link analysis for the site, the BBB link doesn't appear. My competitors, on the other hand, do have BBB links in their analyses. So, I'm wondering if I somehow don't have the right type of BBB account. The BBB seems to be a pretty good place to have a link from, and the company pays $300.00 per year for the membership, so I'd like to get the most out of it. Here's a link to the BBB page for the company http://www.bbb.org/utah/business-reviews/plumbers/platinum-plumbing-services-in-west-jordan-ut-22199778#bbblogo And here's the company's website www.slcplumbing.com Now, the company site I've just listed is 301 redirected to www.platinumplumbinginc.com, but even when www.slcplumbing.com was the main site, the BBB backlink didn't show up. Thank you Blake
Link Building | | BlakeMcGillis0