I have this link
http://xxxx.com/yyyy/index.php?class=Applications&function=create
and I want to make it look like this
http://xxxx.com/yyyy/create
I know that I have to use the
RewriteEngine on
RewriteRule ………………
But Since I’m new at it, I don’t know how to format it..
DirectoryIndex index.php order deny,allow Options +FollowSymLinks -MultiViews
RewriteEngine On RewriteBase /
RewriteRule ^(XXXXXXXX)/(aaaa)/?$ $1/index.php?class=Applications&function=$2 [L,NC,QSA]
RewriteRule ^(XXXXXXXX)/(bbbb)/?$ $1/index.php?class=Applications&function=$2 [L,NC,QSA]
RewriteRule ^(XXXXXXXX)/(cccc)/?$ $1/index.php?class=Applications&function=$2 [L,NC,QSA]
RewriteRule ^(XXXXXXXX)/(dddd)/?$ $1/index.php?class= test&function=$2 [L,NC,QSA]
RewriteRule ^(yyyy)/index\.php$ $1 [L,NC] #this one is not working...
Enable mod_rewrite and .htaccess through
httpd.confand then put this code in your.htaccessunderDOCUMENT_ROOTdirectory: