Trying to run some rewrite module commands on the .htaccess file in the root directory of my web server.
This one is simply to point lyrics/artist/title directories to the php file, I get a 500 internal server error from it:
This one is to point the root directory to index.php thus overwriting the auto index, I know I can do this with a simple redirect command but that shows the filename in the URL and I don't want to do that:
This one just doesn't work and the site just uses the auto index of index.html.
This one is simply to point lyrics/artist/title directories to the php file, I get a 500 internal server error from it:
Code:
RewriteEngine On
RewriteRule ^lyrics/([0-9]+)/([0-9]+) lyrics.php?artist=$1&title=$2
This one is to point the root directory to index.php thus overwriting the auto index, I know I can do this with a simple redirect command but that shows the filename in the URL and I don't want to do that:
Code:
RewriteRule ^/$ index.php
Last edited: