• Resolved caylean

    (@caylean)


    Hey guys,

    I have a question about how I could put two different skripts together on one site.

    I would like to have a MultiUser WordPress for all my Subdomains, while my main domain is PhpLD .. Is that somehow possible to do?

    And if so, how can it be accomplished?

    Having the Main page a static html site, thats no deal at all and easily done, but how about that, how could it possibly be done to have the Directory script and WordPress work together somehow?

    Any help in that matter would really be appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter caylean

    (@caylean)

    I have found a solution that would give me a wordpress in https://domain.tld/ and https://www.domain.tld/ shows the content of the folder www … Right now I am uploading the Directory Script to the www folder to check if it can work also from there as intended….

    At the Moment I have the Problem that the htaccess rule that is used to accomplish this effect, gives me a 500 error whenever I add the htaccess rules from wordpress.

    RewriteCond %{HTTP_HOST} ^www\.domain\.tld$
    RewriteCond %{REQUEST_URI} !^/www/
    RewriteRule (.*) /www/$1

    works, but

    RewriteCond %{HTTP_HOST} ^www\.domain\.tld$
    RewriteCond %{REQUEST_URI} !^/www/
    RewriteRule (.*) /www/$1
    
    # 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

    cripples me again.

    Any ideas how to solve this?

    Edit:

    # 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
    
    RewriteCond %{HTTP_HOST} ^www\.domain\.tld$
    RewriteCond %{REQUEST_URI} !^/www/
    RewriteRule (.*) /www/$1

    WORKS… Now I have to see if the rest also works out as I wish to have it.

    Thread Starter caylean

    (@caylean)

    As I am no more able to edit my previous Post (That didn’t worked out at all), I’d like to put the Answer here as a link, as I do not wish to copy my text from there to here… kind of DC and so eh ??

    This solution works for WHM/cPanel Servers: https://stackoverflow.com/questions/36272849/how-to-give-www-domain-tld-its-own-seperate-folder

    Thread Starter caylean

    (@caylean)

    Forgot to check “Mark this topic as resolved” *sigh* and thats not possible to edit ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Directory Script on Mainpage and a Multi WP for Subdomains possible?’ is closed to new replies.