beepow Posted April 8, 2016 Share Posted April 8, 2016 (edited) 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, thanksb Edited April 8, 2016 by beepow (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted April 8, 2016 Share Posted April 8, 2016 Just use a index.html page, it should override the .php page. Link to comment Share on other sites More sharing options...
beepow Posted April 11, 2016 Author Share Posted April 11, 2016 Hello Dh42, as far as I've seen, yes, it overrides the php... but the thing is that if I point the browser to index.php I'm redirected to the .htm Thanks for replaying at any rate! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now