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
-
Is it worth re-structuring URLs if breadcrumbs are enabled?
Hi Moz Community, I am wondering if anyone can shed some light on this current predicament I am facing... For my website, which is the site for a magazine I work for, the current URL structure is www.website.com/article-title At first glance, I thought it must be that we would have to re-structure the URLs to include the category structure, for example... www.website.com/category/sub-category/article-title However, upon deeper investigation, I've seen that we do actually have breadcrumbs enabled therefore google is indexing and following the structure that we would re-activate for the URL structure i.e. www.website.com/category/sub-category/article-title With this in mind, is it actually worth re-structuring the URLs to include these categories as it will take a long time to organise and implement?! Obviously, thinking in terms of UX, it is a must-do, but I'm just trying to weigh up the pro's and cons with this.. Appreciate your help, Leigh
Technical SEO | | leighcounsell0 -
Canonical URL
Hi there Our website www.snowbusiness.com has a non www version and this one has 398 backlinks. What is the best way of transfering this link value if i establish the www. address as the canonical URL? Thanks, Ben
Technical SEO | | SnowFX0 -
Title Tags & Url Structure
So I'm working on a website for a client in the Tourism Industry. We've got a comprehensive list of museums & other attractions in a number of cities that have to go online. And we have to come up with the correct url structure, title tags and obviously content. My current line of thought was to work the urls in the following way. http://domain.com/type-of-attraction/city/name-of-attraction/ This is mainly because we think that the type of attraction is far more important then the city (SEO wise) as the country as a whole receives more searches, however we require a city in the url to make it unique because some attractions across cities happen to share names and we don't want to have the names of attractions littered with city names. However for title-tags I wanted to go the other way around, again due to the attraction type being more important then the city. Name of Attraction - Type of Attraction - City - Brand Name or Name of Attraction - Type of Attraction in City - Brand Name I am quite confident in working it this way; however I would appreciate if I receive some feedback on this structure, you think its good or you would make any suggestions / alterations. One last thing, There's the possibility of having many urls ending up with the same city names (For each type of attraction) I would think that just providing a list of links & duplicate text is not enough; would you suggest a canonical pointing to a link containing just information on the city? and using the other pages for user-navigation only? or should i set variables in the text which are replaced by the types of attraction so that the text looks different for each one?
Technical SEO | | jonmifsud0 -
Landing Page URL Structure
We are finally setting up landing pages to support our PPC campaigns. There has been some debate internally about the URL structure. Originally we were planning on URL's like: domain.com /california /florida /ny I would prefer to have the URL's for each state inside a "state" folder like: domain.com /state /california /florida /ny I like having the folders and pages for each state under a parent folder to keep the root folder as clean as possible. Having a folder or file for each state in the root will be very messy. Before you scream URL rewriting :-). Our current site is still running under Classic ASP which doesn't support URL rewriting. We have tried to use HeliconTech's ISAPI rewrite module for IIS but had to remove it because of too many configuration issues. Next year when our coding to MVC is complete we will use URL rewriting. So the question for now: Is there any advantage or disadvantage to one URL structure over the other?
Technical SEO | | briankb0 -
Two sites
Hi there just joined had nightmere of a time trying to get a website up and running..... now i have 2 .... one marketing person did and one i did the one i did performing better on google but other onre looks more profetional is there a way i can conbine the 2 under one site..... the one that looks better and getting the benifit of the one thats performing better...... Thanks steve......
Technical SEO | | stevetemple0 -
Why is the ideal rel canonical URL structure?
I currently have the rel canonical point to wepay.com/donations/123456. Is it worth the effort making it point to wepay.com/donations/donation-name-123456? I would also need to track histories if users change the vanity URL with this new structure.
Technical SEO | | wepayinc0 -
Mobile site rank on Google S.E. instead of desktop site.
Hello, all SEOers~ Today, I would like to hear your opinion regarding on Mobile site and duplicate contents issue. I have a mobile version of our website that is hosted on a subdomain (m instead www). Site is targeting UK and Its essentially the same content, formatted differently. So every URL on www exists also at the "m" subdomain and is identical content. (there are some different contents, yet I could say about 90% or more contents are same) Recently I've noticed that search results are showing links to our mobile site instead of the desktop site. (Google UK) I have a sitemap.xml for both sites, the mobile sitemap defined as follows: I didn't block googlebot from mobile site and also didn't block googlebot-mobile from desktop site. I read and watched Google webmaster tool forum and related video from Matt Cutts. I found many opinion that there is possibility which cause duplicate contents issue and I should do one of followings. 1. Block googlebot from mobile site. 2. Use canonical Tag on mobile site which points to desktop site. 3. Create and develop different contents (needless to say...) Do you think duplicate contents issue caused my mobile site rank on S.E. instead of my desktop site? also Do you think those method will help to show my desktop site on S.E.? I was wondering that I have multi-country sites which is same site format as I mentioned above. However, my other country sites are totally doing fine on Google. Only difference that I found is my other country sites have different Title & Meta Tag comparing to desktop site, but my UK mobile site has same Title & Meta Tag comparing to desktop. Do you think this also has something to do with current problem? Please people~! Feel free to make some comments and share your opinion. Thanks for reading my long long explanation.
Technical SEO | | Artience0 -
Google and QnA sites
My website has a QnA site - a bit like this one except it's not private to premium members. It is a page with a left colomn for category links and it has a list of recently asked questions, each question is a link to view the full question and answers etc. Does google know this is a QnA ? Or will it say - hey, there are far too many links on this page, tut tut. Is there anything I can do to help it understand what the page is.
Technical SEO | | borderbound0