i am making a php script and want to rewrite urls in this way all profile page /username /profile.php?id=username /index.html /index.php /about.html /about.php and all other root html pages to php plz help
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*)$ /wiki/index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki$ /wiki/index.php [PT,L,QSA] RewriteRule ^wiki/+$ /wiki/index.php [PT,L,QSA] ok the above code would translate /wiki/index.php?title=''bob" to /wiki/bob and for the php bit AddHandler application/x-httpd-php .php .html .htm if not then mod rewrite RewriteEngine on RewriteRule ^(.*)\.html $1\.php