Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
exclude folders from being re-written using .htaccess
Old 11-08-2009, 07:50 AM exclude folders from being re-written using .htaccess
Experienced Talker

Posts: 32
Name: Mahmoud M. Abdel-Fattah
Location: Alexandria, Egypt.
Trades: 0
I've a problem with this .htaccess file
http://pastebin.com/m3c9a4e14

I still can't access http://www.domain.com/admin/ it redirect to index.php !

**EDITED**
The /admin/ folder has a .htaccess file too, and here's the content :
RewriteEngine Off
AuthType Basic
AuthName "Administrator Control Panel"
AuthUserFile "./passwd"
require valid-user



If I removed the .htaccess file in /admin/, it works fine.

So, I think there's a conflict between 1st .htaccess file (on root) and 2nd one ( on /admin/ )

Last edited by m_abdelfattah; 11-08-2009 at 09:23 AM..
m_abdelfattah is offline
Reply With Quote
View Public Profile Visit m_abdelfattah's homepage!
 
 
Register now for full access!
Old 11-08-2009, 07:56 AM Re: exclude folders from being re-written using .htaccess
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://jfoobar.org/labs/code-snippet...-rewrites.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-08-2009, 08:01 AM Re: exclude folders from being re-written using .htaccess
Experienced Talker

Posts: 32
Name: Mahmoud M. Abdel-Fattah
Location: Alexandria, Egypt.
Trades: 0
yes, I read it and got mine from there ! but still :
when I try to go /admin it redirects to index.php !
m_abdelfattah is offline
Reply With Quote
View Public Profile Visit m_abdelfattah's homepage!
 
Old 11-09-2009, 07:35 PM Re: exclude folders from being re-written using .htaccess
Experienced Talker

Posts: 32
Name: Mahmoud M. Abdel-Fattah
Location: Alexandria, Egypt.
Trades: 0
Ohh, after 2 days of searching, I finally find the solution , just add :
Code:
ErrorDocument 401 default
to either of the 2 .htaccess

I found the solution here :
http://www.andrewrollins.com/2008/01...d-directories/
m_abdelfattah is offline
Reply With Quote
View Public Profile Visit m_abdelfattah's homepage!
 
Reply     « Reply to exclude folders from being re-written using .htaccess
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.76508 seconds with 12 queries