|
|
||||||||
Another htaccess problemThis is a discussion on Another htaccess problem within the Administration forums for Mambo. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Mambo Noob
Join Date: Oct 2009
Posts: 18
|
Hi All,
I'm having a small problem that looks to be centered around the htaccess file. I can't get a frontend login. After searching the forum, checking the absolute path and verifying the write permissions nothing jumps out at me. My host doesn't automatically load an index.php file so I used htaccess to redirect to index.php for index.html requests. Using the htaccess provided with Mambo (with the redirect) did get the login to work once. At which point I couldn't log the user back out again. Any ideas? Here is the .htaccess file: Code:
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourMamboDirectory (just / for root)
# RewriteBase /YourMamboDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^content/(.*) index3.php
RewriteRule ^component/(.*) index3.php
RewriteRule ^mos/(.*) index3.php
Redirect /index.html http://faat-greensboro.org/index.php
Last edited by bserviss; 07-11-2009 at 02:51 PM. Reason: Solved |
|
|
|
|
|
#2 |
|
Mambo Guru
Forum Admin
Join Date: Jul 2006
Location: New Zealand
Posts: 10,004
|
Re: Another htaccess problem
In your htaccess file your index.php will be looping around in a never-ending circle. The reason for this is that Apache looks for index and home files in a certain order, depending on how the server is set up. In your case, your site is loading index.html as the default. Your htaccess redirects this to index.php which then sends it back to index.html, which sends it... well, you get the picture
![]() Remove that redirect and replace it with this, it should solve your problem: Code:
DirectoryIndex index.php index.html Hope this helps
__________________
Mambo Tutorials on:http://lynnepope.net/topics/mambo-tutorials Mambo wiki: http://mambo-manual.org/ Follow me: http://twitter.com/elpie |
|
|
|
|
|
#3 |
|
Mambo Noob
Join Date: Oct 2009
Posts: 18
|
Re: Another htaccess problem
Thank you Elpie, that worked perfectly!
I have learned so much with Mambo already and not just about content management. Thanks again |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
| New To Site? | Need Help? |