Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [subdirectory]

A subdirectory is a directory that is located within another directory.

1
vote
1answer
38 views

Adding a subdirectory to a URL using .htaccess

I am trying to achieve the following: This URL: www.example.com/wis/9-3/1998/0.general Redirected to this URL: www.example.com/9440/wis/9-3/1998/0.general So I'm trying to add this subdirectory to ...
0
votes
1answer
18 views

Different Domains For Google and Users

We have a shopping cart site with a course attached to it like so: www.example.com is the cart Magento Platform www.example.com/course/ is the course Wordpress Platform Both the sites are linked both ...
4
votes
1answer
39 views

What is the most SEO friendly way to redirect the main domain to different subdirectories?

I have a multilingual website (English / Hungarian). I need to redirect my domain (mysite.hu) to subdirectories (/hu, /en), based on chosen user language preference (the default is Hungarian). For ...
2
votes
1answer
38 views

Is it cloaking to use translated international content in different subfolders?

I already read all the recommended answers, but they don't give me any help on what I want to ask. I already read the following: Root index.html file of a multi-language website but it does not ...
4
votes
3answers
37 views

For SEO should there be a web page for every URL path segment? [duplicate]

If I have a domain with the URL example.com/section-1/abc, should there also be a dedicated web page for example.com/section-1 from a SEO point of view? Assume that there is no bread crumb ...
1
vote
0answers
62 views

Mask a subdomain as subfolder and allow access from only from the folder URL

I have serviceX.example.com and I don't want to move everything, I want to mask the URL so visitors and search engines see example.com/serviceX instead of the original/real location. I don't want ...
3
votes
2answers
51 views

SEO: Separate domain targeting each state or one domain with state-specific sections

I'm part of a business based in Western Australia, for example, Online Training Western Australia, currently operating a website on onlinetrainingwa.com.au. Our original goal was to provide the ...
1
vote
0answers
20 views

Does a different site architecture in international subdirectories hurt SEO?

I have a top level domain example.com, it's a site for the US already well positioned. The business is expanding to EU and we are going to create subdirectories to use the DA of example.com. Like: ...
0
votes
0answers
19 views

Staging dev subdirectory address

I have a WordPress site and blog on http://example.com/blog To test out my customizations, I'm creating a staging-dev instance of my site, but now I got confuse about the url of the blog of my ...
1
vote
2answers
37 views

Blog on subdirectory

I have a very simple doubt relate to blogs on subdirectories. I have a main website built with WordPress and I want a blog with it. When we read about the recommendation to put a blog on the ...
5
votes
3answers
275 views

What directory structure is typically used for domains and subdomains on a Linux Apache server

Although I've used MAMP and AMPPS before on OSX, simply for testing purposes, this question is about actual production websites on Apache servers. If I had the domain name www.example.com - if this ...
0
votes
0answers
152 views

In Google Analytics, how to set view filters for tracking subdirectories?

How to set view filters for tracking subdirectories like: http://www.example.com/en/us/?sc_lang=en http://www.example.com/en/us/?sc_lang=de-EU http://www.example.com/en/us/?sc_lang=fr-EU I'm ...
5
votes
1answer
38 views

Moved subdirectory subsite to own domain, how to reconfigure Google Analytics?

We had a website http://mainsite.com that has a subdirectory subsite at http://mainsite.com/subsite. We've split that subsite off into http://subsite.com/ We are still tracking the subsite by using ...
1
vote
2answers
418 views

On-page Markup and Sitemap Multi-language

I have: example.com/en/product-a-en example.com/es/product-a-es example.com/ru/product-a-ru If i use this: On-page Markup Use the lang attribute in the HTML tag: <html lang="en"> Use ...
1
vote
2answers
52 views

Will moving a Hindi website from a subdomain to subdirectory under an English website affect its SEO?

We have recently changed our Hindi website hosted under a subdomain to a subdirectory of a main website that's in English. What happens if we set the geo-targeting of the website that's under this ...
1
vote
0answers
238 views

IIS showing 404 error for CakePHP routing prefixes for instance located in subfolder

I have this Single Page Application built using AngularJS that resides in the document root. The SPA communicates with an API built using CakePHP 3.5.x. The CakePHP instance resides in a folder named ...
3
votes
2answers
1k views

How to implement WordPress in a subdirectory, hosted on a different server?

I am working with a client who already has a custom e-commerce website set up at their own domain e.g. example.com We want to host their WordPress blog at a subdirectory of their domain e.g. example....
2
votes
0answers
136 views

SEO impact of many subdirectories right next to root domain

I'm working on a site that has around 150 static pages within the site structure. It has eight top-level sections linked to from the global navigation. However, having scraped the links from the ...
0
votes
2answers
70 views

Website showing up as part of another domain on google

Background I have shared hosting with hostgator and have two domains on the hosting account. My primary domain which is metalbot.org and another domain with is twocan.co. Each of these are separate ...
2
votes
1answer
901 views

How can I mask URLs with subdirectories to display the same URL?

We have a website called example.com I want these paths and their subdirectories: example.com/vip/members/alice/watch example.com/vip/members/alice/bag to be permanently displayed to visitors as: ...
0
votes
2answers
55 views

Should I host our new website on a subdomain or new top level domain?

I've been working on a website that sells a variety of mobility and health related products. The website has around 15,000 pages in total, but the brand is soon to launch a new service for money-...
1
vote
1answer
249 views

.htaccess mask redirect subdirectory to another subdirectory

The URL of a page in my site is: http:/mysite.com/one/two/three/four I want to mask access this page via: http:/mysite.com/fast/quick The problem is within this page there are subfolders and, let'...
2
votes
1answer
60 views

Does any major website have a language specific sub-directories rather than sub-domains?

Does any major website has a language specific content on subfolder, i.e. www.example.com/es/ for Spanish language rather than i.e. es.example.com? What are the pros and cons of using (ccTLD) Country ...
1
vote
1answer
494 views

How to configure URI in Nginx to serve different web app than in the main domain?

I have CMS running on domain.tld. Now I would like to configure Nginx to server another app from domain.tld/app. CMS in main domain shouldn't handle requests made to domain.tld/app. Can this be ...
2
votes
1answer
81 views

Put document pages to the company site or create “docs” subdomain?

The company produces several software products and the company's site has subdirs for each of the product: www.example.com/product1 www.example.com/product2 www.example.com/product3 which is handy ...
0
votes
1answer
96 views

Is there a difference between adidas.example.com and example.com/adidas for the keyword “adidas”?

I've read at moz, that changing from a subdomain to a subdirectory might increase the ranking of the page. However, their example uses blog.example.com vs. example.com/blog, and "blog" isn't a very ...
3
votes
1answer
59 views

.htaccess wreaking havoc on site root! Help!

I was taught that it is a good practice to separate publicly viewed webpages from included files and other, more sensitive information. That poses a problem, however, when you wish to request index....
3
votes
1answer
989 views

Redirect all pages within subdirectory to new page

After redoing my webshop, I need to redirect every URL within a certain directoy to a new page. All URLs beginning ith example.com/shop/... should be redirected to the page located at example.com/...
3
votes
1answer
1k views

How to access root directory folder from public_html folder through the web using cPanel?

I am able to create folders in my root directory using cPanel. When I do so I would like to be able to access them from the public_html so that they are available on my website. However, I don't ...
4
votes
1answer
538 views

How can I redirect all my files on old URLs to new URLs on IIS?

I've been looking and trying out different pieces of code for months to no avail. Most of what I have found is for .htaccess, and not for IIS. I have two scenarios: subdomain1.domain.com to ...
2
votes
1answer
70 views

Allow third party to use domain subdirectory without risk to your server

If you have a live site on example.com, is it possible to allow third-parties to set up their own site at example.com/project1, example.com/project2 etc without subjecting your server to risk? I ...
0
votes
1answer
20 views

Is a blank really a directory when dealing with mod-rewrite?

I spent about 20 minutes wrapping my head around this, and finally came to a solution but did not know why it worked. The important lines (as it relates to this question) in the apache configuration ...
3
votes
1answer
71 views

Can the subdirectories on a server have their own default pages?

I'm trying to structure my site to serve different areas of content, sort of like this one. I'm wondering how they make it so subdirectories have their own default pages, for example: http://...
0
votes
1answer
315 views

Using subdomain without frame, but keeping sub.domain.com in the address bar?

I'd like to make a download folder on my Server that's accessible via http://download.domain.com/ and host files like file.txt there. This works with a URL frame, but they have to be includable via ...
0
votes
1answer
656 views

Domain redirect alias - ranking, indexing, SEO

I have just became a part of the franchise business chain where all the available franchise locations are grouped under the company website. So the structure and the link to my part of the website ...
2
votes
1answer
239 views

Is it possible to setup a cookie-less directory instead of a domain?

I'm familiar with how to setup a cookie-less domain, however, I have an situation where I can't setup a subdomain to store static elements. Can I set only my directories where assets are being stored ...
0
votes
1answer
29 views

Using sub-directory vs single directory urls [duplicate]

I'm creating a location based site and was debating between two styles of writing urls. The first shows the name of the restaurant followed by the city its located in. example.com/hillstone-new-york ...
4
votes
2answers
702 views

Should I use a subdomain or a subdirectory for SEO? [duplicate]

I have setup a system that will allow me to generate sub websites. These will be completely independent websites that will share a single users database and will all fall under video games. The parent ...
0
votes
1answer
48 views

How to setup structure of a site with multiple sections with different language requirements section wise

I need to know the best way to setup structure for a site having multiple sections (Articles & Property) with each section having different language requirements. 1) Article section: It contains ...
1
vote
2answers
106 views

Google Site: listing Parent Domain directory Index

Currently when we search site:domain.com on google we get a return of 3.6 million pages indexed, About 3,650,000 results (0.31 seconds). When we search site:domain.com/childdirectory we get 3.8 ...
1
vote
2answers
55 views

Subdirectories for countries, but no content in the root level - a problem?

We are in New Zealand and operate in NZ and Australia. We have a .com domain with /nz and /au subdirectories. All content is in the subdirectories and the root level only has a splash page to select ...
1
vote
2answers
25 views

What should be in index files in unused subdirectories?

What's the best practice for index pages in subdirectories which aren't being used (have no content)? Example root/subfolder/index.html My thoughts were to set up a redirect to either the 404 page ...
2
votes
1answer
771 views

Can I point a limited number of subdomains to a subdirectory using DNS?

I have taken my domain Freenom.com (a domain provider) and hosted it on Sixserve.com (a hosting service). The problem is that this hosting service allows only 3 sub-domains for per hosting plan, and I ...
3
votes
2answers
190 views

Can you use the ccTLD for sub-directories when geotargeting?

I know when targeting a specific country or region the best way to do it with the the ccTLD. But if you choose the sub-directory route, should those sub-directories be named the same way you would use ...
2
votes
1answer
60 views

Identify IP address / hosting of inner pages

Working on a website which an SEO agency had previously done lots of spammy work on and built loads of duplicate home pages in subfolders just with a different locals in the title and URLs. However ...
1
vote
1answer
80 views

How do I host my community as a subdirectory rather than subdomain?

I want to harness the SEO benefits of having my community portal sitting as a folder of my main domain, rather than as a subdomain. A lot of the content that is naturally generated is relevant to my ...
2
votes
1answer
59 views

Must the fulltext version of papers be in the same subdirectory as the html abstract to be indexed by Google Scholar?

I have recently made an online repository of papers for an academic organisation. But we are not being picked up by Google Scholar. I think it might be because the fulltext urls are not in a format ...
1
vote
1answer
92 views

Mapping a subdirectory to a second domain using hostgator?

I currently have all of my site hosting routed through my site www.iamkuhan.com, but I want one of my subdirectories, iamkuhan.com/raindelay to map to www.raindelaypodcast.com. I feel like this is ...
2
votes
1answer
1k views

Redirecting www to non www in subfolder

I have Joomla installed on root folder and another Joomla installed on a subfolder. I want to redirect www to no-www in subfolder by this code in blog .htaccess: RewriteCond %{HTTP_HOST} ^(www\....
1
vote
2answers
251 views

Is it possible to configure a .htaccess file to access example.com/subdomain/ without any redirects?

I need to configure 2 CMS's on a domain. The first is on example.com. The other is on subdomain.example.com. Is it possible to configure a .htaccess file so that the second CMS is accessible as ...