Re: redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux