Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 14-09-07
Registered User
 
Join Date: Jun 2004
Location: Yorkshire
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
OnlineMerchants seems to know their stuff
  htaccess & Question marks

Hi all,

Wonder if anyone could help with a problem i'm having with a htaccess fie.

Ok I want to redirect to a different page when only the following url is called:

http://www.domainname.com/cgi-bin/fo...ction=register

so in my htaccess file I put the following:

Code:
RewriteEngine on
redirect 301 /cgi-bin/forums/YaBB.pl(.*)register$ http://www.someotherdomain.com
Unfortunately the above doesn't work for me - i've tried escaping the . to no avail.
Also tried it with and without the $

As a test if I just do the one below then it works but redirects all pages where I only
want that one particular page redirected.

Code:
RewriteEngine on
redirect 301 /cgi-bin/forums/YaBB.pl http://www.someotherdomain.com
Any ideas as to where i'm going wrong would be appreciated

Cheers

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 14-09-07
Registered User
 
Join Date: Aug 2003
Posts: 240
Thanks: 0
Thanked 0 Times in 0 Posts
wibble99 is an unknown quantity at this point
  Re: htaccess & Question marks

I seem to remember looking into this a while back and found that the query string is lost and there's nothing you can do about it.

I spent ages thinking I was doing something wrong and trying everything, then after a lot of looking around I found that other people had had the same problem and it was caused by the query string not being accessible to .htaccess - so it's not a problem with escaping the question mark, it's that the question mark and query string aren't there.

I'm not saying that there can't be a solution somewhere, but it may not be straight forward.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 14-09-07
esnagel's Avatar
Registered User
 
Join Date: Apr 2005
Location: Buffalo, NY USA
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
esnagel is an unknown quantity at this point
  Re: htaccess & Question marks

Are you overthinking this? Why not just do the 301 redirect in the perl script?
__________________
Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 15-09-07
Registered User
 
Join Date: Jun 2004
Location: Yorkshire
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
OnlineMerchants seems to know their stuff
  Re: htaccess & Question marks

Hi,

Thanks guys for your replies - appreciated!!

In the end I did as Eric suggested and added a 301 redirect in a perl script and
called it in from the subroutine.

Now when people press register/post reply etc it takes them to the new forum and
it enables me to leave the old content there for the SE's.

Cheers

Steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Merchant Marks Electrical dazzer Affiliate Future 0 10-11-06 04:13 PM
Quotation marks from datafeed DOUBLED in MySQL table ukyellowpage Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 8 22-02-05 05:23 PM
Question for the established\expert marketeers AndyCoke The Affiliate Marketing Lounge 8 24-08-04 08:47 AM
htaccess & mysql Freebie Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 8 21-12-03 01:21 PM
Attention all partners in the Marks & Spencer program Helen Commission Junction - CJ UK 5 08-05-03 04:56 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7