Jump to content

Stop index redirection (and keep a custom index page)


beepow

Recommended Posts

Hello,
I need to have my store accesible only from the url mysite.com/index.php, while mysite.com must open a different, custom page instead.

This is because I need to password protect the whole site except for a tmp homepage.

I've tried to edit .htaccess by adding these lines:

 

#Alternate default index pages
DirectoryIndex different-index.htm

AuthGroupFile /dev/null
AuthName "Private Area"
AuthType Basic
AuthUserFile  /path/to/httpdocs/.htpasswd
require valid-user

<FilesMatch "^different-index\.htm$">
Allow From All
</FilesMatch>

it partially works, but after I do the login with htaccess, the site is redirected to different-index.htm...

How could I get rid of this redirect?

Any help would be appreciated, thanks

b
 

Edited by beepow (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...