Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Mod rewrite not working?


hey guys thanks for taking the time to look over my problem and help out!

Mod rewrite used to work on my website but it no longer is working after some time i am not sure if the original htaccess was replaced by mistake or what but it is no longer working.

This is my current htaccess file

Code:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.htm$ $1.php [L]

my urls look like this with out the rewrite

Code:

www.domain.com/index.php?done=animalicons.php
and i want them to look like this how they used to with the rewrite

Code:

www.domain.com/mypage.htm
hopefully someone here knows what i am doing wrong thanks for your time!
View Original Thread
Comments
0
Be the first to comment

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect
avatar
Tags: code, work, rewrite, time
URL Rewrite
Sep 3, 2010
I have been using the tuckey urlrewrite with some results, in that if I want to have an incoming URL coming in as gallery/pic20 gets changed to gallery.jsp?pic=20 But the tool bar URL gets displayed as gallery.jsp?pic=20 and I want to…

url rewrite help
Aug 11, 2010
I need to rewrite requested urls from this: domain.com/some-directory/ to domain.com/some-directory/index.cfm Can someone provide an example? I need it to apply to all directory only requests. I looked here, but did not see how to do it. …

URL rewrite
Sep 1, 2010
Tomcat 6: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a

rewrite advise
Aug 27, 2010
hello, i have a menu that has a url as follows http://www.site.com/p/home what is the correct way to have a domain point to the root of this? so that http://partner.site.com shows the http://www.site.com/p/home as the root of the site? is this…

rewrite rule
Aug 18, 2010
rewrite rule for mingle
Jun 10, 2010
Hi, I am using a backend server to serve an application which is running on apache and another apache which is front end to users coming from internet. So the back end server is hidden from outside. I want if some one types in URL …

rewrite redirect advise
Aug 20, 2010
hello, i have a drupal site within which there is a folder with wordpress so http://mysite/blog loads the wordpress. i want to take this out completely so the http://blog.mysite is in its own vhost is it possible in for the http://mysite to add a…

Rewrite context part in URL
Jul 4, 2010
> > Hi guys > > How can I configure tomcat 6.0 to rewrite the context part of URL so a > range of contexts will be mapped to one context. > > e.g. > http://localhost:8080/WEBAPP/ > http://localhost:8080/webapp/ > ...…

Rewrite + List + View problem
Jun 9, 2010
Hi, I'm trying to use the rewrite handler to clean up a list function URL, but doesn't seem to work correctly. The view and list function work fine without the rewrite. The view and reduce output complex keys like so: {"rows":[…

Writing custom rewrite handler?
Jun 15, 2010
I like the simplicity of the supplied rewrite handler, but I'm finding that does not meet my needs. I need to do arbitrary rewrites that involve string concatination, URL encoding, and other such logic., and would like to avoid an external …