Questions tagged [subdirectory]
A subdirectory is a directory that is located within another directory.
104 questions
1
vote
1
answer
340
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
1
answer
71
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
1
answer
1k
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
1
answer
369
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
1
answer
148
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
2
answers
4k
views
Using one index file in all directories and subdirectories
I have an index.php file, which processes content of a directory it is located in and renders output to the browser.
The problem is that the directory structure it is supposed to serve is rather ...
3
votes
1
answer
71
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
1
answer
4k
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/...
2
votes
1
answer
6k
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
1
answer
1k
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
1
answer
277
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
1
answer
44
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
1
answer
329
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
1
answer
491
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 ...
2
votes
1
answer
893
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
1
answer
452
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
1
answer
35
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
2
answers
1k
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
1
answer
61
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
2
answers
125
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
2
answers
66
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
2
answers
30
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
1
answer
970
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
2
answers
276
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
1
answer
75
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
1
answer
100
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
1
answer
88
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
1
answer
160
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
1
answer
2k
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
2
answers
848
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 ...
1
vote
2
answers
455
views
Moving RewriteBase rule in htaccess to httpd.conf
I'm now working in a server environment where I can access and edit httpd.conf, which is preferable from a performance and a revision control standpoint. I have a few sites (they are Drupal) running ...
2
votes
1
answer
52
views
What might be the benefits in regards to pay-per-click (PPC) for sub-folders vs. microsites
I have a client that has a single main site and multiple franchise micro-sites. The micro-sites have most of the functionality that the parent site does but the content is restricted to a specific ...
5
votes
1
answer
20k
views
Can I redirect a root site under IIS to a subdirectory, without affecting other applications?
I'm running IIS 7.5 on Windows Server 2008R2.
I currently run a site at the root of mydomain.edu. I also have a variety of applications (e.g., mydomain.edu/calendar, mydomain.edu/research, ...
1
vote
2
answers
83
views
Moving directory to domain and maintaining SEO
I recently completed a website for a client, which was hosted on my own personal server until we were ready to move it to their own dedicated domain. Inadvertently, the sub-directory got indexed when ...
1
vote
0
answers
31
views
Subdomain redirects to subdirectory [duplicate]
Supposing I have folder called "support" inside root folder "/public_html". I've added a subdomain in my server's panel so that when going to "support.mydomain.com" it redirects to "mydomain.com/...
0
votes
1
answer
101
views
Migrating website to subfolder in another domain
I've a old site : site1.com but I want to move it to a folder in another site: site2.com.
So site1.com/about.htm content should be accessible as site2.com/new/about.htm.
Beyond doing a 301/302 I ...
1
vote
1
answer
459
views
Does masking a subfolder with .htaccess have a negative effect on SEO?
My website is physically located at example.com/websitedirectory.
I am masking the folder so that the document root folder is redirected to /websitedirectory and the folder is masked, so that it ...
3
votes
1
answer
947
views
Google bots and iframe
Here is the problem:
Let say I have mydomain.com. The externaldomain.com/article/mydomain has an iframe with mydomain.com inside but the externaldomain.com robots.txt contains:
Disallow: /article/
...
4
votes
1
answer
224
views
SEO impact of 301 permanent redirecting a domain to a sub-directory of another domain?
I had my own experience of 301 permanently redirecting a domain to another (every page mapped) and Google properly worked everything out and it never had any problem SEO-wise. However, what if I'm ...
3
votes
3
answers
100
views
Do search engines assign any weight to directories within a domain?
I have a piece of content that I'm distributing to news outlets. The primary purpose is to educate and build brand, and of course backlinks never hurt.
Is there an SEO benefit to our future domain....
2
votes
2
answers
40
views
How do I configure Drupal so that is not in a subdirectory?
I loaded Drupal folder into public_html. All works fine. The site opens correctly, but only when I give full address including folder as IP:80/drupal. How do I use only IP:80 to access the website. I ...
1
vote
2
answers
341
views
Can domain masking be used to move content from a subdomain to a subdirectory?
example.com is hosted on IP address c.c.c.c at host1, no access any windows server admin at all
blog.example.com is on IP a.a.a.a at host2, full access to Linux server admin, using WordPress
So ...
0
votes
1
answer
81
views
Will adding top level directories with similar structure to existing directories change the SEO of my site?
I've been pointed this way for SEO related questions and this one has had me pondering for a little while now.
I'm recreating a site's structure. The website's content is generated through several ...
2
votes
2
answers
72
views
Directory URLs for SEO: can the base directory name change when used by itself?
Does it make a difference for SEO if I make my URLs like this:
mydomain.com/companies (main category exploration section)
mydomain.com/company/nike
As opposed to
mydomain.com/company (main category ...
1
vote
1
answer
1k
views
301 directory redirect exclude subdirectory
I need to do a 301 directory redirect in my httpd.conf file but exclude a subdirectory within the directory.
Example: RedirectPermanent /redirect/ http://www.mysite.com/.
But I want to exclude this ...
3
votes
1
answer
654
views
Top Level Domain (.com) and subdirectories for each country: Do they need their own content to rank in Google?
If I want to have a new site with a .com domain and have a /uk/ and /au/ folder for ranking in the Google results for each country, do I need to create a /uk/blog/ and a /au/blog/ to get content for ...
2
votes
2
answers
2k
views
Should I use a subdomain or subdirectory for a Q & A forum section of a site?
I run a coupons and deals website in a niche market, and I'm in the process of adding a questions and answers section to it.
Based on my research, I found popular websites that use either ...
4
votes
1
answer
3k
views
apache2 subdirectory access
I am setting up an apache server on my linux (debian) machine.
I am making a website, with sub directories that contains my css and image file.
Here is my config.
<Directory /var/www/*>
...
1
vote
1
answer
85
views
How to map a blog to path
I would like to create a blog, and I want to have it in a custom URL. Moreover, I would like to host this blog in a subdirectory of my domain, i.e. www.myurl.com/blog, instead of a subdomain (e.g. ...
1
vote
1
answer
283
views
Location-Based redirection and duplication in sub-directories affecting SEO
I currently own the website www.xyz.com. The website has a sub-directory for each of the 3 target countries: .../en-US/ (United States), .../es-MX/ (Mexico), and .../es-DO/ (Dominican Republic). I ...