rewriting to other domains is not working properly

New to mod_rewrite? This is a good place to start.

rewriting to other domains is not working properly

Postby Guest » Sun Feb 22, 2004 4:14 pm

I'm trying to do some work with mod_rewrite. I have come to a little problem though, when I rewrite it locally it works fine, but when I try to rewrite it to another server, it makes the browser location actually change to that other server.

This works (if i type in http://myserver.com/image it doesn't change):
Code: Select all
RewriteEngine on
Options +FollowSymlinks
RewriteBase /

RewriteRule ^image$ /index.html [NC,L]

And this doesn't work (if I type in http://myserver.com/image it changes to http://www.daysinnkingston.com in the browser's address field):
Code: Select all
RewriteEngine on
Options +FollowSymlinks
RewriteBase /

RewriteRule ^image$ http://www.daysinnkingston.com [NC,L]


Is there any way to do this so that I can redirect to another server but not have the browser's address field change? Any help would be appreciated

Thanks.

Mike.
Guest
 

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 35 guests

cron