I’ve enabled mod_rewrite, restarted all services, still not taking affect. Here’s what I have in .htaccess:
RewriteEngine on
RewriteRule .* localhost/phpinfo.php
Please advise.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all rewrite rules in general do not affect the host part of the URL (unless you specify predefined names like
REQUEST_URIetc.) just the path part (an excellent article explaining the bits and bytes of URL rewriting.) That said your rules should at least look something like this.Furthermore is your
AllowOverridedirective for that particular vhost (or folder) configured to allow.htaccessfiles at all? If not.htaccessfiles will be completely ignored. In order for mod_rewrite to work it needs to be set at least toFileInfo Options.