regex - simple htaccess RewriteRule is not working -
hello have urls in format : http://domain.com/index.php?action=page&name=privacy utilize domain.com/page/privacy instead of http://domain.com/index.php?action=page&name=privacy using htaccess. ideas please
rewriterule \/index\.php\/(.*)$ /action/$1
you need rule in root .htaccess:
rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/]+)/([^/]+)/?$ index.php?action=$1&name=$2 [l,qsa]
regex apache .htaccess mod-rewrite redirect
No comments:
Post a Comment