Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 12-01-2011, 11:29 PM
DigitalAlien's Avatar
DigitalAlien DigitalAlien is offline
v7n Mentor
 
Join Date: 10-11-09
Posts: 2,301
iTrader: 0 / 0%
.htaccess help

I am trying to setup a redirect that probably shouldn't be too hard but not sure.

If someone goes to http://www.mysite.com/partner/XXXXX

It should redirect to http://portal.mysite.com/aff.php?aff=XXXXX

The XXXXX will obviously be different each time for different affiliates since each would have a different ID.

Thanks in advance!
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 12-02-2011, 01:42 AM
JohnnyS's Avatar
JohnnyS JohnnyS is offline
Contributing Member
 
Join Date: 07-05-11
Location: philippines
Posts: 312
iTrader: 0 / 0%
you can try this..

Code:
Options +FollowSymlinks RewriteEngine on RewriteBase /partner RewriteRule ^(.+)$ http://portal.mysite.com/aff.php?aff=$1 [R,NC]
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conflict, What is the right htaccess rule, default homepage file with htaccess? basketmen Coding Forum 2 01-20-2009 08:50 AM
how to use htaccess ? Asifk SEO Forum 7 03-04-2008 09:21 PM
.htaccess help wongpk Coding Forum 7 04-04-2006 07:53 AM
.htaccess sim Coding Forum 5 01-24-2005 03:54 PM
.htaccess Pimpen 2010 Coding Forum 15 10-21-2003 01:39 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:45 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC