Hi Guys,
I need to have an .htaccess that changes
http://www.mydomain.com/value/ to http://www.mydomain.com/?s=value
http://www.mydomain.com/value/value/ to
http://www.mydomain.com/?s=value&p=value
http://www.mydomain.com/value/value/value/value/ to http://www.mydomain.com/?s=value&p=valu ... ue&n=value
however needs to ignore /css/ /images/ /js/ /videos/ /assets/
I have started with this:
Options +FollowSymLinks
RewriteEngine on
rewriteCond %{REQUEST_URI} !^/assets/
rewriteCond %{REQUEST_URI} !^/js/
rewriteCond %{REQUEST_URI} !^/images/
rewriteCond %{REQUEST_URI} !^/css/
rewriteCond %{REQUEST_URI} !^/videos/
RewriteCond %{DOCUMENT_ROOT}/([^/]+)/ -f
RewriteRule ([^/]+)/?$ /?s=$1 [L]
RewriteCond %{DOCUMENT_ROOT}/([^/]+)/([^/]+)/ -f
rewriteRule ([^/]+)/([^/]+)/?$ /?s=$1&p=$2 [L]
RewriteCond %{DOCUMENT_ROOT}/([^/]+)/([^/]+)/([^/]+)/([^/]+)/ -f
rewriteRule ([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ /?s=$1&p=$2&v=$3&n=$4 [L]
but it doesn't quite work
Thanks in advance,
Seb