Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
12-17-2011, 02:49 PM #1
- Join Date
- Dec 2011
- Thanked 0 Times in 0 Posts
Mod_Rewrite, Not rewriting URLs and show No Error, working in reverse direction
My htaccess file is supposed to rewrite the URLs but it is not doing so, It recognize the re-written URL but do not convert a URL according to the rule.
here is the rules that I wrote in htaccess file and I think it is correct because it shows no error.
RewriteBase / RewriteRule ^oriental-id-([0-9+])$ /index.php?page=article&id=$1 [L] RewriteRule ^heap-([0-9]+)$ /index.php?page=category&id=$1 [L]
It never show any Server Misconfigured error (Error 500) it means there is no error in the script.
When I go to the URL "http://mywebsite.com/index.php?page=category&id=11" I want the URL to be rewritten as "http://mywebsite.com/heap-11" but it doesnt rewrite it, it simply shows the "http://mywebsite.com/index.php?page=category&id=11".
Now when I go to the URL http://mywebsite.com/heap-11 it show the page located at http://mywebsite.com/index.php?page=category&id=11,
Clearly, it is recognizing the pattern but not actually rewriting the URL.
Any hint on the possible error ?