Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
.htaccess configuration(s)
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 configuration(s)
.htaccess configuration(s)
14-11-2007 11:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hello,
Is it possible to use two .htaccess files: one in the root directory which re-directs to another webpage; and another in a sub-directory which does not re-direct anywhere?
I was thinking, in the root directory:
and in the sub-directory:
the second one is obviously incorrect; there is only 1 argument. However, I think that there must be some line of code to overwrite the inherited re-direct from that in the root directory.
If I wanted to re-direct to another webpage, I can simply put it as the second argument. If however I do not want it to re-direct, I am unsure of what to do.
Can anyone shed some light on this matter?
Thanks in advance,
Logical
Is it possible to use two .htaccess files: one in the root directory which re-directs to another webpage; and another in a sub-directory which does not re-direct anywhere?
I was thinking, in the root directory:
Redirect 301 /index.html http://www.mywebsite.com
and in the sub-directory:
Redirect 301 /index.html
the second one is obviously incorrect; there is only 1 argument. However, I think that there must be some line of code to overwrite the inherited re-direct from that in the root directory.
If I wanted to re-direct to another webpage, I can simply put it as the second argument. If however I do not want it to re-direct, I am unsure of what to do.
Can anyone shed some light on this matter?
Thanks in advance,
Logical
Message 1 of 2
(2,009 Views)
1 REPLY 1
Re: .htaccess configuration(s)
14-11-2007 11:42 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Unfortunatly you cannot override inheritance, which is indeed a pain.
You can however make use of something like mod_rewrite, for which you can control it all from a single file in the root, and use matches to ensure that even with inheritance, it works to your needs.
You can however make use of something like mod_rewrite, for which you can control it all from a single file in the root, and use matches to ensure that even with inheritance, it works to your needs.
Message 2 of 2
(291 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 configuration(s)