Forum Moderators: phranque
that's my simple .htaccess file:
RewriteEngine On
RewriteRule blah.html [mydomain.com...]
I set AllowOverride to All in the httpd.conf file..
I can access [mydomain.com...] but when I type [mydomain.com...] - it says that the doc could not be found..
So, my guess is that basically .htaccess is not visible for apache..How to set it up correctly?
Thanks.
Jim, php has nothing to do with that.. I'm trying to use rewrite rule for simple html files - just to make sure that .htaccess works - but unfortunately it doeasn't.. I set AllowOverride to All and still nothing..
freeflight2, my log file says basically that blah.html doesn't exist..
thanks.
Currently my .htaccess file looks like this:
Options +FollowSymLinks
RewriteEngine On
RewriteRule blah.html [mydomain.com...]
and I'm tryng to type [mydomain.com...] and it doesn't want to show me index.html..it says: "The requested URL /blah.html was not found on this server"..
httpd.conffile for
LoadModule rewrite_module modules/mod_rewrite.soIf there is a comment in front of it, for example...
#LoadModule rewrite_module modules/mod_rewrite.so...you need to uncomment that line (remove the # sign) and then save the file. Don't forget to stop and start Apache again.
Please go through the list in message #4 of that thread, and tell us whether or not your server has met each configuration requirement. We cannot help you unless you are very specific about your problem, and that checklist covers most common configuration problems, including the minor Apache version dependencies.
I suspect you may be missing the Options setting.
Jim