WAMP 500 Internal Server Error .htaccess - .htaccess

I know there are lots of topics there about this error, but i hope you can help.
here's the error message:
The server encountered an internal error or misconfiguration and was
unable to complete your request. Please contact the server
administrator at admin#example.com to inform them of the time this
error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error
log. Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
I think the problem is caused by .htaccess file:
DirectoryIndex index.php index.php3 messagebrd.pl index.html index.htm# disable directory browsing
Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes**

Server 500 errors can be quite a hassle to diagnose, but if you think its the .htaccess file that is causing the problem you need to work out which line is the problem by a simple process of elimination.
Start by removing the .htaccess file, and start apache
Then add one line at a time to the htaccess file restarting apache after each change.
When apache fails to start then you know what line in .htaccess it is that is causing the problem

Related

Can't access files on Magento root

I am looking to install an SSL on my domain name and in order to do so I need to upload a .htm file to the root and access it via the browser, but when I do so, I keep getting a 404 error - this is with any .html page on the root - nothin shows up.
I have edited my htaccess file as well as deleting it all together and still no luck.
The file i'm trying to reach is: http://www.elmershardware.co.uk/xtt5ughh.htm
If someone could help point me in the right direction of fixing this I'd be really appreciative
Thanks
G
I think there is nothing to do with .htaccess. It's something related with your apache conf.
In your apache configuration file check if in DirectoryIndex appears
index.htm as a entry, add it if it doesn't appears and restart apache. Then , try again

Unable to enable Clean URLs in drupal 7 website after migration

Recently, I migrated my website from local machine to server machine. The website URL is http://www.example.com/myweb
I noticed that only front page is visible and other pages are showing 404 error.
After reading this answer, I got to know that this is happening because of clean URL module. I enabled RewriteBase myweb in .htaccess file but It doesn't work out. Finally I thought of disabling Clean URL temporary as told here. This works well.
Now I wanted to enabled it again. It is showing following error-
Clean URLs cannot be enabled.
Below is the screenshot-
I can see some directory permissions error in status report at admin/reports/status. Are these related to each other?
You need to change your Apache server setting on new server.
Enable 'LoadModule rewrite_module modules/mod_rewrite.so' line in httpd.conf file on your server and restart server
Check if .htaccess works and also check if you have AllowOverrides All in your virtualHost config in Apache.

my .htaccess is giving me a Forbidden error

I have the following in the root directory of my site:
RewriteEngine on
RewriteRule ^([^./]{3}[^.]*)$ /index.php?page=$1 [QSA,L]
The .htaccess should be redirecting any request 3 chars or longer without . in the string to the index.php/$string-text as to query my CMS db for output, however when i try and load the index page I get a 403 forbidden error... My .htaccess knowledge is quite basic so try and be easy with me! :)
Thanks
Ric
There does not appear to be anything unexpected with your .htaccess file. If the mod rewrite was not configured correctly, I would expect to see 404 errors or the user being redirected incorrectly. As this does not appear to be the case; you need to widen your search to check that there are no security settings out of place.
I cannot see anything obvious in the httpd.conf file, but here are some of the steps you might want to take.
Remove the .htaccess file - if the website loads okay - then this file is causing an issue somehow; if it doesn't then there is something else wrong.
Check permissions on the web directory being used; there may be a permissions problem.
Check the httpd error log for suggestions.
Ask the question over at serverfault.com or poweruser stack exchange sites.
Ok! So I found the issue, The apache error_log file explained I needed to add this into my .htaccess file and the httpd.conf file -> "Options +FollowSymLinks +SymLinksIfOwnerMatch" and it worked! Now to create my VHost and I am good to go!!! Thanks!!!!!
Thanks
Ric

URL rewriting errors in my htaccess file

everyone..
I need to rewrite this URL
http://www.mydomain.com/profiles/tutors/index.php?tutorCode=1255&tutorName=Kasun%20Perera&city=Bandarawela
like this
http://www.mydomain.com/profiles/tutors/1255/Kasun+Perera.html
I tried this with Apache’s mod_rewrite feature. But I couldn't reach to my expecting result.
Here is Code that I have tried.
RewriteEngine on
For specific teacher:
RewriteRule ^lanka_institute/profiles/tutors/([0-9]+)/([A-Za-z\+\-]+)/([A-Za-z\+\-]+)/$ index.php?tutorCode=$1&tutorName=$2&city=$3
It is not working and then I can get this error message.
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, admin#localhost and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.
More information about this error may be available in the server error
log.
any comments are greatly appreciated.
Thank you.

Internal Server Error joomla 1.5

Please help me in joomla 1.5.
I have Internal Server Error in my website, please give me right path that how to solve this.
error log:
/home/xxx/public_html/.htaccess: Option FollowSymLinks not allowed here
In .htaccess file, try commenting the line:
Options +FollowSymLinks
The error is probably because apache httpd main virtualhost configuration doesn't let you use Options.

Resources