php - Can't get RewriteEngine URL to work -


currently links like:

http://config.website.nl/?show=home , want this: http://config.website.nl/home

now have been looking @ lot of rewriteengine scripts, way more advanced , don't seem work...

this current code:

rewriteengine on # rewritebase / rewritecond %{http_host} ^www\.(.+)$ [nc] rewriterule ^(.*)$ http://%1/$1 [r=301,l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . index.php rewriterule ^/(.*)/ index.php?show=$1 

keep .htaccess this:

rewriteengine on  rewritecond %{http_host} ^www\.(.+)$ [nc] rewriterule ^ http://%1%{request_uri} [r=301,l,ne]  rewritecond %{the_request} \s/+(?:index\.php)?\?show=([^\s&]+) [nc] rewriterule ^ /%1? [r=302,l]  rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.+)$ index.php?show=$1 [l,qsa] 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -