Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-24-2009, 09:02 AM   PM User | #1
CSS
New Coder

 
Join Date: Jun 2006
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
CSS has a little shameless behaviour in the past
.htaccess Redirection Help

I really have no knowledge as far as Apache/.htaccess/rewrites go... what I want to do is:

http://page.com/?redir=x - Replacing x with any URL, automatically redirects the page to that URL... for example: http://page.com/?redir=http://website.com/ will take you to website.com.

Doing this will set the referer from all redirects to http://page.com/?redir=x, correct?
CSS is offline   Reply With Quote
Old 09-30-2009, 02:03 PM   PM User | #2
charlesandrews
New to the CF scene

 
Join Date: Sep 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
charlesandrews is an unknown quantity at this point
I haven't actually tested this, but from this mod_rewrite guide I think you would want to use:

Code:
RewriteRule http://www.yourdomain.com/?redir=(.*) $1 [R=301,L]
Let me know if this works for you, if not we can try something different.

Last edited by charlesandrews; 10-01-2009 at 02:07 PM..
charlesandrews is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:38 AM.


Advertisement
Log in to turn off these ads.