I have a hosted account not linked to any domain at /~me.
In the top level of my home directory I have a .htaccess file:
Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] 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?
/~me/public_html/cgi-bin/example.php contains the above file- what do you mean? Where's the.htaccessfile located?~meor~me/public_html?test.htmlfile in~me, not inpublic_html, does it work?