Re: redirect

From: Date: Mon, 27 Oct 2003 21:32:38 +0000
Subject: Re: redirect
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-31316@lists.php.net to get a copy of this message
Dan Liu wrote:
Hi all, Has anyone used 'Module mod_rewrite URL Rewriting Engine'? I need to do a redirect from http://url1/cgi-bin/mapserv?&map=/dir1/county.map to http://url2/cgi-bin/mapserv?&map=/dir2/county.map But it is not working. Does somebody know why? Thanks in Advance. Dan Dan - without seeing the rewrite code.. its sorta hard to tell why it wouldn't be working!!!
simply put, if your host allows you to use a .htaccess and mod_rewrite.. in the .htaccess RewriteEngine On RewriteRule /usage.html /usage/index.html Where /usage.html is the file that was requested, and /usage/index.html is the file that it needs to go to. Rolf Brusletto www.phpExamples.net

« previous php.db (#31316) next »