I want to make a php website for checking the colorhex code,
now I have one problem while checking the code,
my script is
<?php
echo'
<html><head><style>
body{
background-color:#'.$_GET['c'].';
}
</style></head><body></body></html>';
?>
and I type the url http://example.com/?c=FF0000
will display the background-color as red, but I want to hide the ?c= with modding the htaccess file,I have googled and tried but no one works,anyone know how to do this?
Something like this in the server configuration or a .htaccess file:
If you run into problems with rewriting it always is a very good idea to use the loggin facility apaches rewriting module brings along. Read the manual about the two configuration options
RewriteLogandRewriteLogLevel, they give you a wealth of additional information that helps to understand what is actually going on during the rewrite.