I have to forward URL's in the following style:

http://www.mountainscouts.ch/?Kontakt to http://www.mountainscouts.ch/kontakt

Don't know what to do with the code (and not even if it breaks other stuff...) so I'll just attach it here.

Comments

mattis’s picture

Title: Forward /?Some_Text -Style URL's » Forward /?Some:Text -Style URL's and special characters
Status: Active » Needs review
StatusFileSize
new1.88 KB

I also had problems with URL's containing multibyte characters. The following had to be forwarded:

index.php?Tipps_%2B_Tricks:Tourenvorbereitung:Ern%E4hrung
=>
http://www.mountainscouts.ch/tipps-und-tricks/tourenvorbereitung/ernaehrung

I wrote a patch for it, but I think it is pretty ugly that way. But as I don't have any experience with character encoding, I think somebody with more experience in this area should review it.

Oops... guess I got two accounts...

mattis’s picture

StatusFileSize
new1.8 KB

Same patch without debug-echo's...

dave reid’s picture

Status: Needs review » Fixed

Use:
From: <front>?Kontakt
To: kontakt

Confirmed this works on the latest code.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mattis’s picture

Version: 6.x-1.0-beta4 » 6.x-1.x-dev
Status: Closed (fixed) » Needs work

Thanks alot for the work. I now have the latest dev-version running and it mostly works.

Anyway, there are some redirects still not working:

?&mailform => kontakt/formular
?download=MS_einVerein.pdf => download/mseinvereinpdf

(Data is taken directly from the database, not from the frontend)

I didn't have the time to look into it yet.

dave reid’s picture

Your source paths need to be <front>?mailform and <front>?download=MS_einVerein.pdf

andrewhotlab’s picture

I've just tested the 6.x-1.x-dev released on 2009-Dec-09, running Drupal 6.15, and the module seems not be able to redirect paths beginning with the "?" symbol yet. There is any particular reason for this (maybe a security concern)? The last version of the module that I can confirm to be able to redirect this type of URLs is the 6.x-1.0-beta3, which I'm still running in production.

dave reid’s picture

Status: Needs work » Fixed

Please read #6.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.