.htaccess code giving me a 500 Internal Server Error
-
Hi,
I imported some static HTML pages from a directory. They imported fine, but I copy and pasted the given .htaccess redirect code into my .htaccess file. When I refresh the page after uploading the .htaccess file I get a 500 internal server error. I don’t think the plugin is writing the .htaccess code correctly or something. I know it is the .htaccess code that you gave me that is causing this, because when I remove the given code, the 500 error goes away.Here is what I pasted into my .htaccess file:
Redirect http://lonang.com/Directory 1 http://lonang.christianinternethosting.com/directory-1/ [R=301,NC,L] Redirect http://lonang.com/Directory 1/Directory 2 http://lonang.christianinternethosting.com/directory-1/directory-2/ [R=301,NC,L] Redirect http://lonang.com/Directory 1/Directory 2/Page1.html http://lonang.christianinternethosting.com/directory-1/directory-2/page1-2/ [R=301,NC,L] Redirect http://lonang.com/Directory 1/Directory 2/page2.html http://lonang.christianinternethosting.com/directory-1/directory-2/page2-2/ [R=301,NC,L] Redirect http://lonang.com/Directory 1/directory1.html http://lonang.christianinternethosting.com/directory-1/directory1/ [R=301,NC,L]Also, just a note: Later I will have to go through my .htaccess and change lonang.christianinternethosting.com to lonang.com. Since lonang.christianinternethosting.com is a temporary domain name.
The topic ‘.htaccess code giving me a 500 Internal Server Error’ is closed to new replies.