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
-
How can I avoid duplicate brand name in the title serp?
Hello, How can I avoid duplicate brand name in the title serp? For example:
Technical SEO | | jh0sz
In this page: https://www.latam.com/es_cl/ The title setted is: <title>LATAM Airlines en Chile | Sitio Oficial</title>
But in the SERP show: LATAM Airlines en Chile | Sitio Oficial - LATAM.com Can I avoid LATAM.COM at the end of the title? Regards 8J3jEAX1 -
Where does rel=canonical go? One file that manages sort order, view, filters, etc...
Where do I put the rel=canonical when the search.cfm (using URL re-write) page is the one and only page, just using url parameters to control sort, filter, view, etc. Do I just put the rel=canonical at the top of the search.cfm page? The duplicate content issues I am getting are: https://www.domain.com/tx/austin/ https://www.domain.com/tx/austin/?d=25&h=&s=r&t=&v=l&a= Just want to be clear since Moz Pro is picking up both URL's but it's only really one file, search.cfm Thanks in advance for your help.
Technical SEO | | ErnieB0 -
One robots.txt file for multiple sites?
I have 2 sites hosted with Blue Host and was told to put the robots.txt in the root folder and just use the one robots.txt for both sites. Is this right? It seems wrong. I want to block certain things on one site. Thanks for the help, Rena
Technical SEO | | renalynd270 -
Robots file set up
The robots file looks like it has been set up in a very messy way.
Technical SEO | | mcwork
I understand the # will comment out a line, does this mean the sitemap would
not be picked up?
Disallow: /js/ should this be allowed like /*.js$
Disallow: /media/wysiwyg/ - this seems to be causing alerts in webmaster tools as it can not access
the images within.
Can anyone help me clean this up please #Sitemap: https://examplesite.com/sitemap.xml Crawlers Setup User-agent: *
Crawl-delay: 10 Allowable Index Mind that Allow is not an official standard Allow: /index.php/blog/
Allow: /catalog/seo_sitemap/category/ Allow: /catalogsearch/result/ Allow: /media/catalog/ Directories Disallow: /404/
Disallow: /app/
Disallow: /cgi-bin/
Disallow: /downloader/
Disallow: /errors/
Disallow: /includes/
Disallow: /js/
Disallow: /lib/
Disallow: /magento/ Disallow: /media/ Disallow: /media/captcha/ Disallow: /media/catalog/ #Disallow: /media/css/
#Disallow: /media/css_secure/
Disallow: /media/customer/
Disallow: /media/dhl/
Disallow: /media/downloadable/
Disallow: /media/import/
#Disallow: /media/js/
Disallow: /media/pdf/
Disallow: /media/sales/
Disallow: /media/tmp/
Disallow: /media/wysiwyg/
Disallow: /media/xmlconnect/
Disallow: /pkginfo/
Disallow: /report/
Disallow: /scripts/
Disallow: /shell/
#Disallow: /skin/
Disallow: /stats/
Disallow: /var/ Paths (clean URLs) Disallow: /index.php/
Disallow: /catalog/product_compare/
Disallow: /catalog/category/view/
Disallow: /catalog/product/view/
Disallow: /catalog/product/gallery/
Disallow: */catalog/product/upload/
Disallow: /catalogsearch/
Disallow: /checkout/
Disallow: /control/
Disallow: /contacts/
Disallow: /customer/
Disallow: /customize/
Disallow: /newsletter/
Disallow: /poll/
Disallow: /review/
Disallow: /sendfriend/
Disallow: /tag/
Disallow: /wishlist/ Files Disallow: /cron.php
Disallow: /cron.sh
Disallow: /error_log
Disallow: /install.php
Disallow: /LICENSE.html
Disallow: /LICENSE.txt
Disallow: /LICENSE_AFL.txt
Disallow: /STATUS.txt
Disallow: /get.php # Magento 1.5+ Paths (no clean URLs) #Disallow: /.js$
#Disallow: /.css$
Disallow: /.php$
Disallow: /?SID=
Disallow: /rss*
Disallow: /*PHPSESSID Disallow: /:
Disallow: /😘 User-agent: Fatbot
Disallow: / User-agent: TwengaBot-2.0
Disallow: /0 -
How to redirect my .com/blog to my server folder /blog ?
Hello SEO Moz ! Always hard to post something serious for the 04.01 but anyway let's try ! I'm releasing Joomla websites website.com, website.com/fr, website.com/es and so on. Usually i have the following folders on my server [ROOT]/com [ROOT]/com/fr [ROOT]/com/es However I would like to get the following now (for back up and security purpose). [ROOT]/com [ROOT]/es [ROOT]/fr So now what can I do (I gues .htaccess) to open the folder [ROOT]/es when people clic on website.com/es ? It sounds stupid but I really don't know. I found this on internet but did not answer my needs. .htaccess RewriteEngine On
Technical SEO | | AymanH
RewriteCond %{REQUEST_URI} !(^/fr/.) [NC]
RewriteRule ^(.)$ /sites/fr/$1 [L,R=301] Tks a lot ! Florian0 -
Choosing a company name to rank for with main keyword in it?
First question is in regard to the relevance of the main keyword in the company name when used in anchor texts for linkbuilding and also on the website on page seo title tags etc.. We used to call our selves "Isle Surfboards" but now call ourselves "Isle Surf & SUP" , sup is an acronym for "stand up paddle boards" as our core biz in now paddleboards If we are trying to target the main keyword of "paddle boards" should we reconsider and call ourselves on the web " Isle Surfboards & Paddle Boards" or "Isle Surf & Paddle" or does it even matter? Then when we link build should we be building links with our new name "Isle Surf & SUP" or just as "Isle Paddle Boards" or does it even matter? Any help out there? bottom line is we want to rank better for the phrase "paddle boards" & "stand up paddle boards" as those are the top keywords. And in closing since both above are the 2 most popular keywords and are very similar "stand up paddle boards" has "paddle boards" in the phrase should all my on page related seo target "stand up paddle boards" phrase since that would have both phrases or "paddle boards" or a combo of both?
Technical SEO | | isle_surf0 -
Have a client whose name is Scott Gable and his profession is photography
When I do a search for Scott Gable (just his name) google comes up like this (without the sitelinks): http://chrle.us/MGer When I add photography to the search query it comes up like this (with the sitelinks structured below) http://chrle.us/MHXy is his name that common that the full sitelinks wouldn't appear below it on the scott gable search? Would 301 redirecting scottgablephotography.com to scottgable.com help fix this?
Technical SEO | | callmeed0 -
Switching Site to a Domain Name that's in Use
I'm comfortable with the steps of moving a site to a new domain name as recommended by Google. However, in this case, the domain name I'm asked to move to is not really "new" ... meaning it's currently hosting a website and has been for a long time. So my question is, do I do this in steps and take the old website down first in order to "free up" the domain name in they eyes of search engines to avoid large numbers of 404s and then (in step 2) switch to the "new" domain in a few months? Thanks.
Technical SEO | | R2iSEO0