Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
htaccess file for htdocs folder also applied to domain?
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- htaccess file for htdocs folder also applied to do...
htaccess file for htdocs folder also applied to domain?
24-02-2008 6:45 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have some content in the /htdocs folder of my webspace
I also have a domain hosted in a subfolder, with its own content.
how can I prevent redirect directives in /htdocs/.htaccess from affecting the domain name.
For example I'd like to move some content from the webspace to the domain but if I use a redirect at the moment it'll cause a loop.
I also have a domain hosted in a subfolder, with its own content.
how can I prevent redirect directives in /htdocs/.htaccess from affecting the domain name.
For example I'd like to move some content from the webspace to the domain but if I use a redirect at the moment it'll cause a loop.
Message 1 of 4
(1,136 Views)
3 REPLIES 3
Re: htaccess file for htdocs folder also applied to domain?
01-03-2008 12:36 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Not 100% clear what your stabbing at,
but, I get the general idea of what your trying to acchieve. (I think)
Perhapse post a copy of your /htdocs/.htaccess. That would be a staring point.
also it depends alittle on how your indexes are coded/arranged, as well as Domain setup.
I get the idea that something is redirecting causing a constant loop, I've done it myself before.
It could be anywhere for all I know
Jim,
but, I get the general idea of what your trying to acchieve. (I think)
Perhapse post a copy of your /htdocs/.htaccess. That would be a staring point.
also it depends alittle on how your indexes are coded/arranged, as well as Domain setup.
I get the idea that something is redirecting causing a constant loop, I've done it myself before.
It could be anywhere for all I know

Jim,
Message 2 of 4
(320 Views)
Re: htaccess file for htdocs folder also applied to domain?
01-03-2008 1:15 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This is not easily possible with standard Apache directives.
Mod_Rewrite is installed though, so you can use this to filter out requests for the domain.
.htaccess has very poor inheritance in that all sub-directories have this file applied to them and there is no way to turn this off.
Mod_Rewrite is installed though, so you can use this to filter out requests for the domain.
.htaccess has very poor inheritance in that all sub-directories have this file applied to them and there is no way to turn this off.
Message 3 of 4
(320 Views)
Re: htaccess file for htdocs folder also applied to domain?
10-03-2008 7:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Sorry, must have missed the reply. Thanks for trying.
Yes I think mod_rewrite is the answer as it can be made domain-aware. Unfortunately it seems to depend on knowing your full directory path. I've had some success with hard redirects when the rewrite returns a url but I've never managed to remap directories properly.
mod_rewrite scares me...
Yes I think mod_rewrite is the answer as it can be made domain-aware. Unfortunately it seems to depend on knowing your full directory path. I've had some success with hard redirects when the rewrite returns a url but I've never managed to remap directories properly.
mod_rewrite scares me...
Message 4 of 4
(320 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- htaccess file for htdocs folder also applied to do...