Wallpapers Forums Login

How To Fix Mod_rewrite 500 Internal Server Error On .htaccess File Apache

ok, so today, i wanted to start making my urls more search engine friendly (SEO), i wrote my .httaccess file and made the changes on my files to make sure the urls are as i put them in the .htacess file. when i tried to open my urls, i kept getting this Apache 500 error:



CODE:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster @example.com 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.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.0  Server at thisdomain.com Port 80


I remember a whie back ago i got this same error on another apache server. so what i had to do was look at the /etc/httpd/conf/httpd.conf file make sure i uncomment the mod_rewrite, so i logged into the linux shell and opened the httpd.conf file:

CODE:
nano /etc/httpd/conf/httpd.conf

When i open it, found that the mod_rewrite was not commented out, so wha else could be the problem, as you can see,
LoadModule rewrite_module modules/mod_rewrite.so the is not commented out in the httpd.conf file:


CODE:

LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so


so what else could be the problem i wondered...
Then i checked for AlloweOverride :

CODE:
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>


I changed AllowOverride from None to All, rebooted the server and i still kept getting the 500 error. at this point i was breaking my head..
so i checked my .htaccess file again to make sure i didn't make a typo or something, so this is how my .htacces files looks like:

CODE:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^p-([0-9]*).html viewpage.php?id=$1


So i removed the Options +FollowSymLinks then uploaded it my site, and voala! i didn't get the error anymore. so this is how my .htaccess file looks like now:

CODE:
RewriteEngine on
RewriteRule ^p-([0-9]*).html viewpage.php?id=$1


Thanks to the support team at www.webune.com for helping me with this problem, i had read a post regarding this on this fourm but could not get a resolution on the problems.

Thanks Webune for your support on my dedicated server. - that's what i call service.
abir Tue Mar 27, 2012
That's so interesting , but when i modified the config file, my server still off line !!! i couldn't restart it !!
purity Wed Mar 07, 2012
mine is that when i load my site url, it gives me a blank page??????? How can i resolve this
Kai Tue Feb 07, 2012
Thanksss..!! You save my day~!!!
Ashish Sun Nov 13, 2011
Hello When i am going for any thing edit in htaccss . It reflects same 500 internal server errir.
Gal Wed Dec 01, 2010
Thank you.
It solved my issue.
website Wed Jul 21, 2010
I`ve read few of articles here and could say it was really interesting, thanks for sharing that.
vanessa Sat Feb 20, 2010
i dont get it!when i go to myspace home it says 'sorry please try again' and it says 500 Internal Server Error
Jitin Tue Dec 29, 2009
hi, i am facing this problem frm long time but now it is working fine..thanks for your help and support..

web-development-se
Live Fri Oct 16, 2009
didn't work for me, i did in the default file
allowoverride all

mystix2112 Sat Jun 13, 2009
the perblerm is permisson or the perl is
not running right if you are using perl
the scripts will no load read /var/
is where the log are
chami Fri Apr 03, 2009
nice & clear article.helped me to solve my problem
nboarch Sun Mar 29, 2009
hello i was attempting to use mod rewrite on uniserver but got 500 internal server error does that mean my apache mod re write module is not working for me. and how do i need to install it to fix this proble?
vbulletins Sat Jan 10, 2009
i have htaccess file gives internal error 500 vbulletin forums can you help
Jennifer Mon Jan 05, 2009
seems to have worked! your awesome!
50742k Fri Jan 02, 2009
great!!! so much thanks and greetings from mexico city, but i have one more trouble, rewrite doesn't work :'(

it redirect me at 404 page :(

my .htaccess code is:


rewriteengine on
rewriterule ^profile/(.*)$ profile.php?dirid=$1 [l,nc]

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5