I need help with Apache .htaccess
I want to redirect www.abc.com.au/folder1/folder2/file.php?pi=xyz to look like:
www.abc.com.au/folder1/xyz/folder 2/
Any help will be appreciated.
put this code in your DOCUMENT_ROOT/.htaccess file:
RewriteEngine On
RewriteRule ^(folder1)/([^/]+)/([^/]+)/?$ /$1/$3/file.php?pi=$2 [L,NC,QSA,NE]