I’m new to mod_rewrite, and it’s either my server doesn’t support the module or I’m doing something wrong.
Should the code above work properly if uploaded to www.website.com/.htaccess ?
Basically I’m trying to change specific .php pages to .html, and give some pages a fake sub-directory extension, will this work?
Thank you very much in advance.
Have you checked if your Apache server has mod_rewrite loaded? This needs to be loaded in the apache2,conf. Typically in Debian based distributions in root->etc->apache2->mods-enabled you need a rewrite.load like
Good thought but mod_rewrite code on a server where it’s not loaded and enabled would generate syntax errors which cause 500 errors to be sent, i.e., it’s enabled.