Jump to content

.htaccess URL rewrite problem


Shadows2k

Recommended Posts

Hi I have a very frustrating problem admittingly I dont know htaccess as well as I should but anyway I have the following snippet for one of my links.

[code]
ReWriteRule ^link/(.*)$ goto.php?l=$1 [L]
[/code]

and regular links work perfectly transferring it into my goto.php script but heres the problem.  If a link has the [b]?[/b] symbol in it, it breaks the URL, gives the goto.php script the left substring and strips out the right part after the ?, kinda uses it as a delimitor, for example one that was posted on my message board.

[quote]
/link/http://www.myfoxchicago.com/myfox/pages/Home/Detail?contentId=1823428&version=1&locale=EN-US&layoutCode=VSTY&pageId=1.1.1
[/quote]

OUTPUT -->

[quote]
http://www.myfoxchicago.com/myfox/pages/Home/Detail
[/quote]

If you look at the url, it splits the URL short just before the ? character, any suggestions, I dont know htaccess that well but its doing my head in :( .
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.