I have a site that sits in a directory on a domain:
http://www.example.com/site/
I also have an .htaccess file in /site/ which has several rewrite rules. These rules work if all the files (including the .htaccess file) sit on the top-level of the domain: e.g., at http://www.example.com.
My .htaccess file looks something like this:
RewriteEngine On
RewriteBase /
RewriteRule ^css/loader/\d+/([^/]+)(\?(.*))?$ /loader.php?t=css&c=$1
I need the rules to work within the directory but I can’t seem to figure out it, can anyone please help?
Edit: figured it out, server was on Apache 1.2+ which uses the POSIX regex engine as opposed to the PCRE engine in Apache2.
Edit: figured it out, server was on Apache 1.2+ which uses the POSIX regex engine as opposed to the PCRE engine in Apache2.