Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Redirecting all users except 1

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  mod_rewrite help  
Author Message
Brian S. Paskin

External


Since: Aug 14, 2006
Posts: 2



(Msg. 1) Posted: Mon Aug 14, 2006 1:06 pm
Post subject: Redirecting all users except 1
Archived from groups: alt>www>webmaster (more info?)

Hi, I am trying to figure out a way to redirect all users, except the
ip address I am working on, to update the site.

I have been trying different combos in the .htaccess (Apache) without
coming up with a solution.

Any ideas would be great!

Thanks,
Brian

 >> Stay informed about: Redirecting all users except 1 
Back to top
Login to vote
Brian S. Paskin

External


Since: Aug 14, 2006
Posts: 2



(Msg. 2) Posted: Mon Aug 14, 2006 5:10 pm
Post subject: Re: Redirecting all users except 1 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks to everyone who wrote back. I decided to place some code in PHP
to handle this. It is not the best solution, but it is a solution that
works. I will continue to try some things with mod_rewrite.

Thanks,
Brian

 >> Stay informed about: Redirecting all users except 1 
Back to top
Login to vote
Brian Wakem

External


Since: Sep 07, 2007
Posts: 47



(Msg. 3) Posted: Mon Aug 14, 2006 9:30 pm
Post subject: Re: Redirecting all users except 1 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Brian S. Paskin wrote:

> Hi, I am trying to figure out a way to redirect all users, except the
> ip address I am working on, to update the site.
>
> I have been trying different combos in the .htaccess (Apache) without
> coming up with a solution.
>
> Any ideas would be great!


Try something like:

RewriteCond %{REMOTE_ADDR} !^xxx\.xxx\.xxx\.xxx$
RewriteRule ^.*$ /redir.html [R,L]


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
 >> Stay informed about: Redirecting all users except 1 
Back to top
Login to vote
Rik

External


Since: Jul 18, 2006
Posts: 56



(Msg. 4) Posted: Mon Aug 14, 2006 10:34 pm
Post subject: Re: Redirecting all users except 1 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Brian S. Paskin wrote:
> Hi, I am trying to figure out a way to redirect all users, except the
> ip address I am working on, to update the site.
>
> I have been trying different combos in the .htaccess (Apache) without
> coming up with a solution.

Does this work (untested)?

RewriteCond %{REMOTE_ADDR} ^123\.255\.255\.255$
RewriteRule ^(.*?)$ $1 [L]

RewriteRule ^(.*?)$ temp/$1 [R]

Grtz,
--
Rik Wasmus
 >> Stay informed about: Redirecting all users except 1 
Back to top
Login to vote
Rik

External


Since: Jul 18, 2006
Posts: 56



(Msg. 5) Posted: Mon Aug 14, 2006 10:38 pm
Post subject: Re: Redirecting all users except 1 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Brian Wakem wrote:
> Brian S. Paskin wrote:
>
>> Hi, I am trying to figure out a way to redirect all users, except the
>> ip address I am working on, to update the site.
>>
>> I have been trying different combos in the .htaccess (Apache) without
>> coming up with a solution.
>>
>> Any ideas would be great!
>
>
> Try something like:
>
> RewriteCond %{REMOTE_ADDR} !^xxx\.xxx\.xxx\.xxx$
> RewriteRule ^.*$ /redir.html [R,L]

Ah, I was looking wether or not that ! would be supported, but I couldn't
find it that fast on http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html.
Nice to know.

Grtz,
--
Rik Wasmus
 >> Stay informed about: Redirecting all users except 1 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Users Logging in. - I am developing a website for a club that has 40 members. How can I set up the site so that users log in and are then shown as being on-line ? Thanks

symbols as seen by US users - I have just built a site which contains both the euro symbol and the british pound symbol in ariel font (see www.remotestand.com) and was wondering if both these symbols will get displayed correctly to U.S. visitors or will they get some horrid message..

Looking for IM Script/Users Online. - I rvn a site for my alvmni grovp. We originally started as a mailing list on YAHOO Grovps, and I developed the site to give vs more options; however, the grovp did not want to leave the mailing list/...

Shopping Cart | AOL USERS - Please check my cart for functionality at http://www.hgdavis.com/blue_star_blade.html Thanks hgdavis

uploading images by users - I want to allow users of my bulletin board to post images to a dierectory on my site. PHPBB doesn't allow this directly. So you have link to an external site. If I could get this to be done on my site, then they could just link to my site and make things...
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]