Connecting Tech Pros Worldwide Forums | Help | Site Map

redirecting problem

Newbie
 
Join Date: Jul 2009
Posts: 2
#1: Jul 5 '09
Dear

I want to redirct our website to another URL.

the website as an example is http://www.XXX.com.qa and I want to redirct it to
http://www.XXX.com/?posl=QA&uci=5277&rci=5277.

i tried to redirect it in the Webconfig file but it gives an 500 internal error eventhough when I'm redirecting it to http://www.XXX.com it works fine and it is directed.

i'm using IIS 6

thanks for assistance,

Newbie
 
Join Date: Jul 2009
Posts: 1
#2: Jul 7 '09

re: redirecting problem


Why don't you use Helicon Tech's ISAPI_Rewrite?

The rules in .htaccess in the root of your http://www.XXX.com.qa site will be as follows:

RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.([^.]+)\.com\.qa$ [NC]
RewriteRule .? http://www.%1.com/?posl=QA&uci=5277&rci=5277 [NC,R=301,L]
Newbie
 
Join Date: Jul 2009
Posts: 2
#3: Jul 7 '09

re: redirecting problem


thanks

but is there aonther way to handle this.
Reply

Tags
500 internal error, iis 6, internal errror, reddirect


Similar IIS / Microsoft Internet Information Services bytes