rewrite or redirect suggestions needed

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
tsl
Posts: 28
Joined: Sat 27. Aug 2005, 16:34

rewrite or redirect suggestions needed

Post by tsl »

Hi,
I'm trying to integrate an helpdesk application into phpwcms but I'm failing on the rewrite parts (which I think I need to get it integrated).

i.e I need the following:

http://vhost1.domain.tld/?cmd=knowledge
rewritten or redirected to
http://vhost2.domain.tld/index.php?id=2,0,0,1,0,0

I have tried directives like

RewriteEngine On
RewriteRule ^/?cmd=knowledge(.*) http://vhost2.domain.tld/index.php?id=2,0,0,1,0,0
or
Redirect permanent /?cmd=knowledge http://vhost2.domain.tld/index.php?id=2,0,0,1,0,0

but no rewrite or redirect is done. Nothing in the errorlog, and the access log just shows the /?cmd=submit url.

I have tried reading up on apaches use of wildcards in mod_rewrite but can't seen to grasp it all.

Anyone with ideas how toget this to work?

Thanks,
-tsl-
Post Reply