Mambo forums
Forum Home Register Forum Rules FAQ Search Today's Posts Mark Forums Read

Go Back   Mambo CMS Forum > Mambo 4.6 Releases > Administration
 

Another htaccess problem

This is a discussion on Another htaccess problem within the Administration forums for Mambo.

Reply
 
Thread Tools
Old 07-11-2009, 04:23 AM   #1
bserviss
Mambo Noob
 
Join Date: Oct 2009
Posts: 18
Resolved Another htaccess problem

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 03:51 PM. Reason: Solved
bserviss is offline   Reply With Quote
Old 07-11-2009, 02:47 PM   #2
Elpie
Mambo Guru
Forum Admin
 
Elpie's Avatar
 
Join Date: Jul 2006
Location: New Zealand
Posts: 9,964
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
This switches the order of the index files around so that index.php loads everytime an index page is called and index.html only loads if index.php does not exist.

Hope this helps
__________________
Mambo Tutorials on:http://lynnepope.net/topics/mambo-tutorials
Follow me: http://twitter.com/elpie
Elpie needs your help: http://lynnepope.net/need-your-help
Elpie is offline   Reply With Quote
Old 07-11-2009, 03:00 PM   #3
bserviss
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
bserviss is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 10:58 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Mambo Foundation, Inc © 2000 - 2008 All rights reserved. Mambo is Free Software released under the GNU/GPL License.

Managed Servers by DedicatedNOW