Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to rewrite a dynamic URL and I have written a RewriteRule in .htaccess to rewrite this URL. my RewriteRule is 100% correct, but it is not working. I have tried all the ways but it is not working. Some one has told me that there may be some problem in your PHP coding.

I want to know that can PHP coding effect the URL Rewriting? if yes, then what should I do to correct it?
Posted

1 solution

PHP is *NOT* the problem. Check the Apache docs here[^] for URL rewriting in .htaccess. There are many examples in the detailed documentation that is linked there. Check things like "RewriteEngine On", and be careful about what your directory has inherited.

Peter
 
Share this answer
 
Comments
rashidfarooq 31-Oct-11 3:13am    
I have read it and tries all the possible solutions, but the result is same. Nothing happen. I Can give you my .htaccess file, if you want.
rashidfarooq 31-Oct-11 3:41am    
can u please explain what you mean by "what your directory has inherited"

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