Welcome to WebmasterWorld Guest from 22.214.171.124
have installed apache on my local windows machine and it is working! set to listen to port 8080 as i have iis as well. php also installed and scripts are running fine, no problems so far
using phpinfo() i can see that mod_rewrite is amoungst the loaded modules.
however i can't get it to work! i've written some rewrite rules in .htaccess but nothing happens, infact i get a 404 page not found error, when i try to go to the url (which should redirect to a different url if the .htaccess rules are being followed)
i have however uploaded the same htaccess file to an account at a new webhost and it does work, so i must have written the rewrite rules correctly, i can only think that there is some apache config setting that i need to change or i need to map the folder in some way that i haven't yet. (although php scripts are running, so it can find the php)
Previous to Apache 2, the mod_rewrite module must be loaded *after* the php module; Otherwise, it won't run properly. This is a common problem, since a lot of people just add the LoadMoadule for php at the end of the list. It should actually go at the beginning of the list or near the beginning. Modules are executed in the opposite order that they are loaded.
Addmodule, LoadModule, and AllowOverride are available at the server configuration level only, usually in the httpd.conf file. If you are on a shared server these will not be accessible. AddModule is not used in Apache 2.0 and higher. You can try adding the Options directive to your .htaccess file and testing with a simple rewrite.