Current URL: http://broom.xyz/index.php?tag=C/santa
GOAL URL: http://broom.xyz/C/santa
Note: The Tag 'C/santa' is a single dynamic value.
It can change to anything like 'F/fanta' or 'M/Manta'.
My Code:
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^([^/]*)$ /index.php?tag=$1 [L]
This Code Generates A 500 Internal Server Error. Here Is The Error Log:
[Fri Apr 07 13:33:10.469218 2017] [core:alert] [pid 4202] [client 47.11.122.64:52755] /var/www/html/workspace/broom/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration [Fri Apr 07 13:40:31.595944 2017] [core:alert] [pid 4185] [client 47.11.122.64:53076] /var/www/html/workspace/broom/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
LoadModule rewrite_module modules/mod_rewrite.so