Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   redirect configuration (http://www.go4expert.com/forums/redirect-configuration-t18678/)

divinequran 24Jul2009 09:19

redirect configuration
 
Hi,

i have redirected using the following code.

Code:

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/(.*).htm
RewriteRule ^(.*).htm http://www.mysite.com/test/test.php?ho=$1 [L]

My requirement is to display test.php?ho=hi.htm as hi.htm . it displays properly on my site. but not on my localhost, how do i configure it? in my apache.

shabbir 24Jul2009 09:23

Re: redirect configuration
 
If your localhost is Windows then .htaccess files has lots of problems in Windows.

divinequran 24Jul2009 23:47

Re: redirect configuration
 
previously i used to work when i was using XAMP, now i have configured Apache2.2 on my machine and displays the URL as it is on the address bar.


All times are GMT +5.5. The time now is 02:38.