Guest footballkid4 Posted November 5, 2005 Share Posted November 5, 2005 I would have posted it on ApacheFreaks but this is more active. Anyways, I have my .htaccess like this: RewriteEngine on RewriteRule ^/files/(.*).php$ /index.php?fuseaction=$1 Is there somethign in there that would prevent it from working? This is my first time EVER installing or working with Apache, I have 2.0.55 installed. I heard ou had to uncomment the loadmodule line for Mod_rewrite so I did that, but there was also somethigna bout AddModule? Not sure about that... Quote Link to comment https://forums.phpfreaks.com/topic/2802-mod_rewrite/ Share on other sites More sharing options...
Cook Posted November 5, 2005 Share Posted November 5, 2005 Try backslashing the dot of your .php extension. Quote Link to comment https://forums.phpfreaks.com/topic/2802-mod_rewrite/#findComment-9383 Share on other sites More sharing options...
Guest footballkid4 Posted November 5, 2005 Share Posted November 5, 2005 Still nothing. It seems like it's something wrong with my Apache config Quote Link to comment https://forums.phpfreaks.com/topic/2802-mod_rewrite/#findComment-9385 Share on other sites More sharing options...
shoz Posted November 10, 2005 Share Posted November 10, 2005 Try Removing the '/' at the start RewriteRule ^files/ When using the RewriteRule in a .htaccess the directory you're in is stripped(terminology may be off). ie if this was a .htaccess file inside the "files" directory for a request like http://host/files/file.html you would use ^file.html$ and not ^files/file.html$ Also check your logs and turn the Rewrite Log Level higher RewriteLogLevel 7 RewriteLog path/to/rewrite_log_file Quote Link to comment https://forums.phpfreaks.com/topic/2802-mod_rewrite/#findComment-9533 Share on other sites More sharing options...
Guest footballkid4 Posted November 10, 2005 Share Posted November 10, 2005 I have it fixed now. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/2802-mod_rewrite/#findComment-9535 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.