can't figure out i'm doing wrong.
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_filename} !-l rewriterule ^(.+)\.php$ detail.php?name=$1 [nc,qsa,l] rewriterule ^(.+)/directory/\.php$ detail2.php?name=$1 [nc,qsa,l]
the first rewriterule should redirect (ending on php domain.com/product1.php) root domain detail.php (it can not affect things domain.com/contact.php)
a 2nd rewriterule should redirect domain.com/directory/product-b1.php detail2.php
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* /foldernamehere/index.php/$0 [pt,l]
paste code in .htaccess file resolve problem
Comments
Post a Comment