Force users to another page not index
1 Attachment(s)
ok some ppl wonderd how to force users when coming to site, to view a page not index.php
heres how i done it. creat a blank index.html and place into root add this to your .htaccess or create .htaccess and place this inside Code:
DirectoryIndex name_of_file.php no instead of users gettin index.php they will get login.php or forums.php or signup.php whatever you want first page view to be. hope this helps |
Is this how its suppose to look?
Code:
DirectoryIndex index.php |
DirectoryIndex index.php
should be DirectoryIndex login.php |
Quote:
Code:
DirectoryIndex login.php |
thats correct, clear your cache from browser and reload browser. it works for me anyway.
|
omg now this is really wierd, i tried the .htaccess on the test site hosted locally and it worked but it isnt working with the site hosted on my linux server!
alright checked the apache logs and it was some kinda directive error so this is what i changed and it works. anyone who has problem getting it to work, try this: Code:
1) check that /etc/http/conf/httpd.conf "Allowoverride is set to "All" |
All times are GMT +2. The time now is 15:04. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.