mod rewrite and automatic redirection

Posted by Klemen on Stack Overflow See other posts from Stack Overflow or by Klemen
Published on 2010-03-26T14:27:38Z Indexed on 2010/03/26 14:33 UTC
Read the original article Hit count: 193

Filed under:
|
|

Hello!

I have this rule written in my .htaccess RewriteRule ^blog/([0-9]+)/? /obdelaj.php?ime=$1 which works but it redirects me to example.com/obdelaj.php?ime=# and i want the user to stay on example.com/blog/#

I have a hostgator account and i dont have access to the httpd file , and i presume that a some configuration in httpd file is causing this, because on my localhost machine this work just fine.

So what would i have to add to the .htaccess to overwrite this automatic redirection?

Thank you

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite