I have a hosted account not linked to any domain at /~me.
In this home directory I have a .htaccess file:
Options +FollowSymlinks RewriteEngine on RewriteRule 123.html cgi-bin/example.php [nc]
The full path of example.php is /~me/public_html/cgi-bin/example.php. However /~me/123.html returns a 404.
Is my .htaccess not valid?
I also tried the following
RewriteRule ^~me/123\.html ~me/cgi-bin/example.php [nc]
and apache logs returned this:
File does not exist: /home/me/public_html/123.html
So the regex isn't matching for some reason.
RewriteRule (.*)123.html ~me/cgi-bin/example.php [nc]
removes the apache log error. So I have to assume the request is now getting caught by the .htaccess. But still 404ing so why would the path to the php file not be working? If I call it directly it executes.