Support » Fixing WordPress » Internal server error with WP on an addon domain

  • Resolved gepilling

    (@gepilling)


    I have a domain, let’s call it domain.com. And I have an addon domain, call it addon.com, whose files are hosted in a directory within domain.com. I successfully installed WordPress in that directory so it can be used as addon.com, and I am in the process of modifying the theme right now, but I stumbled upon a pretty big problem.

    The problem I’m having is that all of the links that WordPress generates on addon.com go to domain.com/addon/ when they are supposed to go to addon.com. For example, clicking a category link while on addon.com goes to domain.com/addon/category/name instead of addon.com/category/name like it should. Furthermore, manually typing in addon.com/category/name results in a 500 internal server error.

    The addon domain is properly set up via cPanel (my host support person even confirmed this for me). So why is this happening? And what do I need to do to fix it? Any help is greatly appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Go to Settings > General and see if the URLs are correct.

    Thanks, but the URLs are correct, that wasn’t the problem.

    However, I thought the problem might be with the .htaccess file so I played around with that a bit and discovered the solution. In the .htaccess file, there are these 2 lines (among others)…

    RewriteBase /addon/
    and
    RewriteRule . /addon/index.php [L]

    and I manually changed them to:

    RewriteBase /
    and
    RewriteRule . /index.php [L]

    and that solved the problem! All the links are going where they should now, and I’m not getting the internal server errors anymore.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Internal server error with WP on an addon domain’ is closed to new replies.