php - Htaccess rewriting multiple variables -


i dumb when comes .htaccess, through numerous attempts learn basics. here:

this current .htaccess:

rewriteengine on rewriterule ^$ /splash [l,r=301] rewritecond %{http_host} ^domain\.com$ [nc] rewriterule ^ http://www.%{http_host}%{request_uri} [r=301,l,ne] rewriterule ^([a-z0-9-]+)/?$ /index.php?cat=$1 [l,nc,qsa] 

i keep current functionality , add 2 things like:

you can use:

rewriteengine on rewriterule ^$ /splash [l,r=301]  rewritecond %{http_host} ^domain\.com$ [nc] rewriterule ^ http://www.%{http_host}%{request_uri} [r=301,l,ne]  rewritecond %{request_filename} !-d rewritecond %{the_request} \s(.+?)/+[?\s] rewriterule ^(.+?)/$ /$1 [r=301,l]  rewriterule ^([a-z0-9-]+)/?$ /index.php?cat=$1 [l,nc,qsa]  rewriterule ^([a-z0-9-]+)/([a-z0-9-]+)/?$ /index.php?cat=$1&product=$2 [l,nc,qsa] 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -