b2k Posted February 17, 2008 Share Posted February 17, 2008 Hi, i have my local server in my computer.... So... My local path to my www its W:\www But if i just put a single .htaccess on the server i always got forbidden...why this happen? Quote Link to comment https://forums.phpfreaks.com/topic/91584-problem-with-htacces-in-apache-and-windows-server/ Share on other sites More sharing options...
wildteen88 Posted February 17, 2008 Share Posted February 17, 2008 Check Apaches error log for why. What configuration is contained within the .htaccess file? Quote Link to comment https://forums.phpfreaks.com/topic/91584-problem-with-htacces-in-apache-and-windows-server/#findComment-469100 Share on other sites More sharing options...
b2k Posted February 17, 2008 Author Share Posted February 17, 2008 [sun Feb 17 16:45:30 2008] [alert] [client xxxxxxxxx] W:/www/.htaccess: <Directory not allowed here Quote Link to comment https://forums.phpfreaks.com/topic/91584-problem-with-htacces-in-apache-and-windows-server/#findComment-469102 Share on other sites More sharing options...
b2k Posted February 17, 2008 Author Share Posted February 17, 2008 The .htacces only have this RewriteEngine On RewriteRule ^link([^/]*)\.html$ rewrite.php?link=$1 [L] Quote Link to comment https://forums.phpfreaks.com/topic/91584-problem-with-htacces-in-apache-and-windows-server/#findComment-469124 Share on other sites More sharing options...
wildteen88 Posted February 17, 2008 Share Posted February 17, 2008 Is that all the configuration? As it appears there must be more which the following error you posted suggests, unless it is an old error: [sun Feb 17 16:45:30 2008] [alert] [client xxxxxxxxx] W:/www/.htaccess: <Directory not allowed here In which case it should cause a 500 Internal server error rather than a 403 Forbidden error. Quote Link to comment https://forums.phpfreaks.com/topic/91584-problem-with-htacces-in-apache-and-windows-server/#findComment-469135 Share on other sites More sharing options...
b2k Posted February 17, 2008 Author Share Posted February 17, 2008 Sorry but the Date of my pc its wrong xD... Anyway, i don't understand what you toll me Quote Link to comment https://forums.phpfreaks.com/topic/91584-problem-with-htacces-in-apache-and-windows-server/#findComment-469137 Share on other sites More sharing options...
wildteen88 Posted February 17, 2008 Share Posted February 17, 2008 What url are you using when you get the forbidden error? I don't think its an issue with the htaccess file I think its to do with how you're accessing a file. Quote Link to comment https://forums.phpfreaks.com/topic/91584-problem-with-htacces-in-apache-and-windows-server/#findComment-469147 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.