Bluehost.com Web Hosting $6.95

.htaccess

This is a discussion on .htaccess within the Apache Web Server forums, part of the Web Server and Related Forums category; How do I prevent users bypassing a home page? ie Going direct to mysite/forum/index.php instead of mysite/...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-09-2007
Brian Telford
 
Posts: n/a
Default .htaccess

How do I prevent users bypassing a home page? ie Going direct to
mysite/forum/index.php instead of mysite/index.htm


  #2 (permalink)  
Old 07-09-2007
patpro ~ Patrick Proniewski
 
Posts: n/a
Default Re: .htaccess

In article <f6sqsg$2o6$1$830fa7a5@news.demon.co.uk>,
"Brian Telford" <brian@remove.this.rushford.antispam.demon.co.uk >
wrote:

> How do I prevent users bypassing a home page? ie Going direct to
> mysite/forum/index.php instead of mysite/index.htm


you can't, unless you start relying on cookies/sessions/... In that last
case, you have to set a short-life cookie for the user on
mysite/index.htm and check for that cookie on mysite/forum/* needless to
say that it's not very effective, and that it may become a real pain for
users.

patpro

--
http://www.patpro.net/
  #3 (permalink)  
Old 07-09-2007
Mark Taylor
 
Posts: n/a
Default Re: .htaccess

"Brian Telford" <brian@remove.this.rushford.antispam.demon.co.uk > wrote in
news:f6sqsg$2o6$1$830fa7a5@news.demon.co.uk:

> How do I prevent users bypassing a home page? ie Going direct to
> mysite/forum/index.php instead of mysite/index.htm
>
>


Make use of the environment variables, Referrer, SetEnvIf, and AllowFrom in
a <Directory> container.


I'd have to play around with it some but I'm sure someone else can give you
something a lot better, or give you some code to work with.





----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0