You are not logged in.
Pages: 1
Hi,
i have redirected using the following 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.
Offline
let's see, the first two things that come to mind:
- is mod_rewrite enabled on your localhost?
- are you using an exact copy of the .htaccess you have online? (that won't work, you have to edit the paths that are being used)
A lot of info about htaccess files can be found here
oh yeah? well, your momma dresses you funny and you need a mouse to delete files
Offline
I'm sure you should be escaping the dot in .htm however you say it's working as is so I'm not sure.
Note you might want to have an end anchor ($) after htm to avoid unanticipated results. Also indicate what kind of redirect you're aiming to achieve.
You'll have to check your .conf to make sure .htaccess files are being read at all. Have you got any other directives (DirectoryIndex, whatever) in there so you can show the .htaccess is being read?
Offline
Scrub that...
Last edited by Toolz (2009-07-24 13:40:00)
Offline
you can look at these links for example
http://w3calculator.com/math-tutorial/h … mbers.html
The redirect works fine, but the url on the address does not seems to be so. The url is shown as
http://www.w3calculator.com/math-tutori … dd-numbers
What would be the issue. I have searched for hours and days to fix this. Any idea.
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.