What directory should a site go in (url structure)?
-
Hi All,
The is the first actual SEO campaign i've worked on and I had a few question about where the site should live on the server and url structure. The site is in WP and we're using Yoast SEO.
Anyway the site lives in a a folder called Coastal, which is a child of the WWW folder. So the permalink of the homepage is mcoastalwindows.com/coastal/. The URL is mycoastalwindows.com. The thing is I can still get to the homepage or any of the pages on the site by typing in the /coastal/. Another example is permalink mycoastalwndows.com/coastal/siding/ and url mycoastalwindows.com/siding/. The urls always display without the /coastal/, so I'm not too worried about people linking to them, but Yoast puts a canonical element to the permalink and always includes the /coastal/. Also I'm seeing that Google displays a lot of the urls with the /coastal/, which is an issue seeing as we don't link to the pages that way.
My original thought was to solve this at the source and just move everything out of the coastal directory, but the developer swears that it's more secure being in another folder especially with WP. What would you all do and what is best practice? Would you move everything out of the coastal folder, 301 re-direct, do something with. htaccess, or another solution?
Appreciate the input thanks!
-
Thanks for the help guys! Appreciate it.
-
Hi Mario,
The Mozzers above are right - your best move is to get rid of the redundant /coastal/ subfolder.
Your developer is incorrect. There is no security benefit to the subfolder.
I would suggest, to ensure security, that you instead have a thorough read through this guide to Hardening WordPress and follow these methods, as they will cover you for the vast majority of hack attacks.
Also, keep regular backup copies of your database if your hosting company doesn't do this automatically. Between that and backups of the website files, you'll be well covered in the event of a hack.
Best,
Mike -
Hi,
I agree with Jeff, developers seem to have an inherited paranoia problem with Word press and security. This can be solved by using a security plug in like word fence.
Word press is built with security in mind its weakness is 3rd party plug ins so beware when installing any always look for more popular properly supported ones.
Hope this helps
Brett
-
Hi Mario,
I agree with Jeff. You need to move your site up a folder.
You could write rules that remove the '/coastal/' from the canonical URL for the Yoast plugin, 301 redirect /coastal/* to /* etc - but this is really messy.
It's fine to have your site on the root domain....it's no less secure.
-
Mario -
The biggest issue I see is that your developer thinks that having content not in the www / home directory is somehow more secure. I think this is a red flag, as literally 20% of the websites on the Internet run WordPress (including my site).
While there are security issues from time to time that crop up, keeping up to date with patches, upgrades and server settings will mitigate this.
Best practice, hands-down, is to keep your home page content in the www folder, and not in the /coastal/ folder. In a sub-folder, it's not going to perform as well from an SEO perspective. And it could hurt you, as it looks like you might be trying to "stuff" in a keyword or two.
I would recommend moving the site into the www / home directory, and setting things up so that this is the primary URL. Yes, use 301 redirects on the older links so that you don't have 404 errors on the site…
Hope this helps!
-- Jeff
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
-
Need Advice on Categorizing Posts, Using Topics, Site Navigation & Structure
Hey there, My site had terrible categorization. I did a redesign, and essentially decided to start over using Topics instead of categories - which appear as my site's main navigation. Now I need to assign a Topic to all my posts. Is it safe to assign posts to multiple parent Topics from an SEO point of view? I want to do it since it would be helpful for users to find them in multiple locations some of the time, but I certainly don't want any SEO issues. Also, should I de-categorize all of my posts since I'm assigning them to my new hierarchical taxonomy - Topics? This is very important to finalize. Any help or advice is greatly appreciated. Thanks, Mike
Technical SEO | | naturalsociety0 -
URLs too long, but run an eCommerce site
Hi, When I started out I was pretty green to SEO, and didn't consider the usability/SEO impact of URL structure. Flash forward, I'm 5 years deep into using the following: mysite.com/downloads/category/premium-downloads/sub-category/ ("category" is quite literally one rung on the link - thanks, WordPress - however "sub-category" is a placeholder) I run a digital downloads store, and I now have 100s ofinternal links beholden to this hideous category linking structure. Not to mention external links at Google Ads, etc. I would LOVE to change this, but if I were to do so, what should I consider? For instance, is there a checklist for making a change like this? I was thinking of changing it to something like the following: mysite.com/shop/c/premium/sub-category/ And also, how much damage, if any, would this be doing to my SEO? Thanks in advance,
Technical SEO | | LouCommaTheCreator
Lou1 -
Can adding thousands of new indexable URLs to my site at once be a problem?
Hi everyone, I am currently working on a project that will quickly add thousands of new indexable URLs to my site. For context, the site currently has over a million indexable pages. Is there any danger of adding a few thousand URLs at once to the site? Could it potentially affect crawlability/SEO/other pages? Thank you!
Technical SEO | | StevenLevine0 -
Site Category structure detrimental to SEO?
Hi Guys, I am hoping that you may be able to help with an internal debate on whether our currently category structuring could be damaging from an SEO point of view. Our site sells t shirts primarily and as such we have a large product base of around 7000+ products. Our category structure currently works like so: Mens/T-Shirts/Movie&TV/TV/ Which I think is fairly typical, though this where it gets interesting, within this end category of "/TV/" there are around 120 categories that are used from a filtration point of view to contain items for each specific show etc, IE Mens/T-Shirts/Movie&TV/TV/Breaking_Bad, Mens/T-Shirts/Movie&TV/TV/Game_of_Thrones. The vast majority of these categories have between 1 and 3 products within them and the rest higher. Multiply this by the large amount of categories that we have on site and these end level "Band Title" categories amount to around 13,000+ categories in the directory. If at this point we put the filtration element aside, what is the communities opinion of the benefits or drawbacks of having the category structure like this? Thanks in advance for any feedback.
Technical SEO | | timsilver0 -
URL Structure Question
We are building a job board website that will have a decent amount of "career resources" type content and want to make sure we set up our url structure correctly. After researching on Google and here I have an idea how to structure it but would like some insight if we are on the right track. We are using Wordpress for the content part of our website. We will have about 5 content categories (like resume-tips, job-interviews, job-search etc.) The two options we are considering; www.domain.com/career-resources/index.html As content start page www.domain.com/career-resources/resume-tips/index.html category start page www.domain.com/career-resources/resume-tips/top-5-resume-mistakes.html article name is the /career-resources/ folder really needed or can we go something like; www.domain.com/career-resources/index.html As content start page www.domain.com/resume-tips/index.html category start page www.domain.com/resume-tips/top-5-resume-mistakes.html article name Are we on the right track... and is one way better for SEO that the other? Thanks! Shaun
Technical SEO | | aactive0 -
Ranking going down and down and disappears.
I asked a question a few weeks ago about a main keyword that we are targeting that is fluctuating up and down. The keyword is "trash bags" and that is what my company sells. All different colors, thicknesses and sizes. This isn't just a random keyword we are trying to optimize for, this is our business. Before I started optimizing the website for "trash bags" we used the term "garbage bags", now that we started we have been off the charts and on the charts, but we have never regained rankings. The trend finally looked like it was going upwards... but now I see I dropped off of google again. Is this normal? Should I be worried that google is penalizing me for this keyword (There is many links that have trash bags in the anchor text - but we do sell that!)? Here is a screenshot of our ranking history for trash bags: https://www.diigo.com/item/image/3vpdp/no01
Technical SEO | | EcomLkwd1 -
Redirecting a old aged site to a new exact match site?
Hi All, I have a question. I have 2 sites with me in the same sector and want some help. site 1 is a old site started back in 2003 and has some amount of links to it and has a pr 3 with some good links to it but doesn't rank much for any keywords for the timing. site 2 is a aged domain but newly developed with unique content and has a good amount of exact match with a .com version. so will there be any benefit by redirecting site 1 to site 2 to get the seo benefits and a start for link bulding? or is it best to develop and work on each site? the sector is health insurance. Thanks
Technical SEO | | macky71 -
Changing url structure
We are an ecommerce site established in 2005 and currently have some great rankings. We are about to move away from our existing platform, actinic and move on to Magento. This will change all our url's. What are the steps we should be asking our web developers to follow in order to minimize the consequences of moving? Thank you.
Technical SEO | | LadyApollo0