• Resolved Caleb

    (@cidesign)


    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.

    https://ww.wp.xz.cn/plugins/import-html-pages/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stephanie Leary

    (@sillybean)

    I do not let the plugin write these rules to the .htaccess file automatically because so many things can go wrong. I suspect the problem in this case is that your directory names contain spaces, and you need to escape them. If that doesn’t work, you’ll have to either check the .htaccess documentation or contact your web host to see if they can give you more information about what the problem might be.

    Thread Starter Caleb

    (@cidesign)

    Thanks for the 6 month late reply.

    Thread Starter Caleb

    (@cidesign)

    You can close this post now

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘.htaccess code giving me a 500 Internal Server Error’ is closed to new replies.