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
https://forums.phpfreaks.com/topic/31744-htaccess-url-rewrite-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.