File name same as folder name, ok?
-
Is it ok to have a folder and file name to be both the same
e.g
File name would be a page that lists a number of products and then within the folder there would be x-product.php, y-product.php etc
-
Jinx! You owe me a diet coke.
-
There is nothing technically wrong with this, so yes it is OK. I've seen this done before.
Some people also choose to use an index page at the directory level so that domain.com/xyz-products/ resolves with say "index.php". You would need to make sure you provide the right canonical/redirect combination if you do choose to go this route of course.
-
Is the folder itself also a page? Why not just make domain.com/xyz-products/ serve the domain.com/xyz-products.php page? That seems like the most intuitive way for it to work. When people want to get back from a product page within the xyz-products directory to the top level page, they may just edit the URL and delete everything after that (I do this all the time).
If you want to stick with the structure you listed, it shouldn't have any issues other than what I mentioned above.
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
-
Wrong domain name showing in the SERP
I work with Axos Bank, and the domain name in the SERP started showing axos-services.com a couple of weeks ago. *As a test, search for [axos bank] in Google. You may need to click on "Search instead for axos bank" under "Showing results for axis bank" which is a whole separate issue we want to resolve. They do own axos-services.com, and it redirects to axosbank.com (along with a number of other domains). The SERP has always shown axosbank.com until recently, but the redirect has been in place for some time. Any idea why and how to prompt Google to show the correct domain? Thanks, all!
Technical SEO | | Gildej0 -
Google Listing Brand Name as Page Title rather than actual set Title
Any search result including our website is displaying our search result title like this: "Brand Name: Partial Page Title" instead of what it should be "Page Title" (as an example). Where is the "Brand Name:" coming from? We've verified we don't have any code that could cause this, and we're blocking in robots.txt directory listings being used for our search result title/meta. This isn't happening for our competitors. Any ideas on why this is, and if it's something we can control?
Technical SEO | | Closetstogo0 -
Keyword rich domain name and page title
Hi guys, First of all, I must say I love this community, and that SEO is great and at time fascinating :d Ok my question now is, I have this domain which is keyword rich, later I noticed Google changed my pages title into something else but similar, also added my domain name (mysite.com) in the titles. Google had taken some of his auto-title-suggestions from inside my pages, later i changed them and saw google changed the titles too accordingly, nice work google ) So I figured this tile name changing is because my domain is already keyword rich, right? so the best practice is, I create a more unique descriptive title + my domain name at the end of the title. (And for homepage, domain name .com at the beginning in the title. What do you think? Thanks for your thoughts!
Technical SEO | | mdmoz0 -
For a web agency, can the same WHOIS registrant name information between different domain names hurt SEO?
Hi, I own a web agency and we often register domain names for our clients. When we register those, I just realized that we always use the same registrant name and other whois (ex : Louis-Philippe Dea), for all domain names. Can this hurt the SEO of our clients? Hope that you'll understand when I'm trying to say in spite of my bad english :S Thanks 🙂
Technical SEO | | Louis-Philippe_Dea0 -
Is this an OK back link profile?
Hi Guys I have worked throug this SEOMoz article to examine our back link profile http://www.seomoz.org/blog/how-to-check-which-links-can-harm-your-sites-rankings This is an image of the chart I ended up with. http://bit.ly/Z7Pp1G Does this look like an OK back link profile? Should I be doing something about the high number of 0 and -1/NA rank links? Thanks Paul backlinkprofile.gif
Technical SEO | | TheUniqueSEO0 -
Broken links shall i put them in my htaccess file to generate juice
Hi, when i had to rebuild my website after my hosting company made an error, i lost over 10,000 pages and lost many thousands of links coming to my site. What i want to know is, instead of trying to recreate those pages again which would take me a long time, should i put them into my htacess file and have them point back into my site. so for example, if i have a link coming to my site to an article which could be, holidays in benidorm are not selling well, would it be a good idea to have that link pointed at the main benidorm section which is benidorm news. And if i had an article which was people are finding it hard to lose weight, instead of writing a new article could i have the link pointing to my health section? If this is the correct way of doing it to grab back some link juice, would it slow my site down and how many links could i put in my htacess file. So what i am trying to say is, if i put in say 1000 redirects into my htaccess file, would it slow my site down and is this a wise thing to do or should i just let the links go.
Technical SEO | | ClaireH-1848860 -
Blocked by meta-robots but there is no robots file
OK, I'm a little frustred here. I've waited a week for the next weekly index to take place after changing the privacy setting in a wordpress website so Google can index, but I still got the same problem. Blocked by meta-robots, no index, no follow. But I do not see a robot file anywhere and the privacy setting in this Wordpress site is set to allow search engines to index this site. Website is www.marketalert.ca What am I missing here? Why can't I index the rest of the website and is there a faster way to test this rather than wait another week just to find out it didn't work again?
Technical SEO | | Twinbytes0 -
On a dedicated server with multiple IP addresses, how can one address group be slow/time out and all other IP addresses OK?
We utilize a dedicated server to host roughly 60 sites on. The server is with a company that utilizes a lady who drives race cars.... About 4 months ago we realized we had a group of sites down thanks to monitoring alerts and checked it out. All were on the same IP address and the sites on the other IP address were still up and functioning well. When we contacted the support at first we were stonewalled, but eventually they said there was a problem and it was resolved within about 2 hours. Up until recently we had no problems. As a part of our ongoing SEO we check page load speed for our clients. A few days ago a client who has their site hosted by the same company was running very slow (about 8 seconds to load without cache). We ran every check we could and could not find a reason on our end. The client called the host and were told they needed to be on some other type of server (with the host) at a fee increase of roughly $10 per month. Yesterday, we noticed one group of sites on our server was down and, again, it was one IP address with about 8 sites on it. On chat with support, they kept saying it was our ISP. (We speed tested on multiple computers and were 22MB down and 9MB up +/-2MB). We ran a trace on the IP address and it went through without a problem on three occassions over about ten minutes. After about 30 minutes the sites were back up. Here's the twist: we had a couple of people in the building who were on other ISP's try and the sites came up and loaded on their machines. Does anyone have any idea as to what the issue is?
Technical SEO | | RobertFisher0