Click here to Skip to main content
15,886,046 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have verified that mod_rewrite is enabled.

The URL that I want to rewrite is as under

http://www.freshupnow.com/movie.php?moviename=A+Flat


I want to rewrite this URL as under

http://www.freshupnow.com/movies/A-Flat


The .htacess file is in my root directory
I have write the following code in .htaccess to rewrite the URL

Options +FollowSymlinks
RewriteEngine On  #Turn on the rewriting engine 

RewriteRule ^movies/([A-Za-z0-9-]+)/?$ movie.php?moviename=$1 [NC,L]


But It is not working. It even does not raise any error.
I am much worried. Can any one solve this problem.

Note: (I have contacted to my hosting company and they have verified that every thing regarding .htaccess and RewriteRule is enabled and working from their part, it means that problem is at my part, but I am not getting what is the problem)
Posted
Comments
I.explore.code 30-Oct-11 5:48am    
can you try removing the Options +FollowSymLinks line from your .htaccess file and try it again?
rashidfarooq 30-Oct-11 8:53am    
I have tried it. But it is still not working.

1 solution

 
Share this answer
 
Comments
rashidfarooq 30-Oct-11 4:41am    
I have verified from some sources that my RegEx code is correct. But the problem is, that it is not being applied. It is not effecting.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900