You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marcelo Custódio <ma...@gmail.com> on 2014/10/17 16:45:52 UTC

[users@httpd] RewriteCond not working ...

hey I need a condition + rule like this: wheter I go to www.example.com it
serves me index.php but otherwise if I go to www.example.com/my-article it
points me out to show_post.php?url=$1

I´ve tried this: http://apaste.info/6i2 . Please note RewriteRule
^viewpost-([^/]*)$ show_post.php?url=$1 [L] is just a workaround and not my
final intention ( it works when I request
www.example.com/viewpost-my-article but my intention is
www.example.com/my-article )


Thanks in advance !