Forums

WP Subdomains plugin trouble (2 posts)

  1. thwbaur
    Member
    Posted 1 year ago #

    Hi all,

    First of all, I have done a lot of reading about this plugin, the way it works and I know there appear to be some difficulties when used together with WP3.3.1 and other "newer" WP versions. But since I need its functionality, I installed it and it seems to work for at least a part of its job. However there is still an issue I can't resolve and I simply need some expert to think with me :)

    Currently I have my website HTML based with a PHP based webshop in the /webshop folder. I have a subdomain http://webshop.mydomain.com which points to this /webshop folder. Nice, it works like a charm.

    I am building a completely new website and I installed the WP E-commerce webshop plugin to replace my old webshop. The WPEC plugin creates a shop start page which in named "webshop". So far, so good. When I temporarily rename the old "webshop" folder to e.g. "temp" or "old" ad I go to http://www.mydomain.com/webshop, I reach the WPEC Webshop page and that works good. No complaints here.

    My next step is to make the WP "webshop" page to be treated as a subdomain, so http://webshop.mydomain.com should result in the "webshop" WPEC page. Therefore I installed the WP Subdomains plugin. I activated the "Activate Page Subdomains" option and I added the required field to the "webshop" page. The plugin perfectly detects the page I want it to be included in its subdomain conversion. When I enable the plugin, the links on my WP page also are converted e.g. http://www.mydomain.com/webshop changes to http://webshop.mydomain.com . Of course I temporarily disabled the old "webshop" folder by renaming it.

    One would guess that, navigating to the subdomain, the plugin would redirect to the proper page. But instead of that I get a 500 server error, which could mean about anything. Now I read about DNS wildcards and editing httpd.conf and .htacces but I'm not sure if I have to do that. The /webshop subdomain already exists, pointing to the IP adress of my main site. Am I overlooking something? Thanks in advance for thinking with m!

    Regards,

    Thomas

  2. thwbaur
    Member
    Posted 1 year ago #

    Did some digging today and the results were somehow surprising. As I mentioned before, the WP Subdomains plugin translates my "webshop" permalink to the correct subdomain name. When visiting the subdomain the server generates a 500 error. I looked into my .htaccess and it looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    I also noticed that, when i REMOVE my .htaccess file, the 500 error becomes a 404 not found. So the .htaccess actually contributes to the subdomain behaviour. I only have insufficient knowledge on how to read and edit .htaccess. I have been reading about the possibilities of mod_rewrite but I'm not sure whether this should be used to correct my situation.

Topic Closed

This topic has been closed to new replies.

About this Topic