hi,
I want to write one file which is .html to .php extnsion
right now i have this
RewriteRule ^(artist.html*)$ /artist.php?%{QUERY_STRING} [L]
RewriteRule ^$ /artist.php?%{QUERY_STRING}
but this effects all html files any help please
hi,
I want to write one file which is .html to .php extnsion
right now i have this
RewriteRule ^(artist.html*)$ /artist.php?%{QUERY_STRING} [L]
RewriteRule ^$ /artist.php?%{QUERY_STRING}
but this effects all html files any help please
The easiest way is
#Enable URL Rewriting
RewriteEngine on
#Flag [QSA] adds any additional URL paramiters to the call
#Home Page
RewriteRule ^onefile.html$ /onefile.php [QSA]
So
onefile.html will redirect to onefile.php
and
onefile.html?get=foo redirects to onefile.php?get=foo
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.