Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

CSS not working..... bare HTML

edited June 2015 in Vanilla 2.0 - 2.8

Hey all, I've been trying to get forums up for my gaming network, and for some reason it isn't working. The home page looks fine, as visible here. However, navigating to any other page results in a complete lack of CSS not working, leaving the HTML bare. Also, some pages have completely disappeared, like the moderation queue, and other pages. Can anybody help?

Note: I have PHP 5.6, and am currently running on linux.

Comments

  • hgtonighthgtonight ∞ · New Moderator

    Welcome to the community!

    It looks like you are using a relative path that uses the absolute form of urls. It appears your rules to serve from a sub-domain are causing this issue. This is a server configuration issue.

    What server software are you using?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Try reinstalling the software by overwriting the files with a fresh copy.

  • x00x00 MVP
    edited June 2015

    try setting these in conf/config.php

    $Configuration['Garden']['WebRoot'] = '/forums';
    $Configuration['Garden']['StripWebRoot'] = '/forums/';
    

    grep is your friend.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Looks like you installed this wrong.

    http://forums.elitedominancegaming.net/ <<<<< this is the folder where you install Vanilla if you want it in the root of the subdomain.

    Not this

    http://forums.elitedominancegaming.net/forums

    Make sure you are uploading the files to the right folder whatever it may be.

  • @hgtonight said:
    Welcome to the community!

    It looks like you are using a relative path that uses the absolute form of urls. It appears your rules to serve from a sub-domain are causing this issue. This is a server configuration issue.

    What server software are you using?

    I'm running my website on the one.com hosting service, under the folder labeled "forums". Basically, to add a subdomain, uploaded the file originally labeled "vanilla" into my domain's root directory, and renamed it to "forums". So, the basic linux file path looks like /www/forums/.

    @x00 said:
    try setting these in conf/config.php

    $Configuration['Garden']['WebRoot'] = '/forums';
    $Configuration['Garden']['StripWebRoot'] = '/forums/';
    

    I tried that, didn't fix the problem. Any other page besides the main one (forums.elitedominancegaming.net) show up without any CSS.

    @vrijvlinder said:
    Looks like you installed this wrong.

    http://forums.elitedominancegaming.net/ <<<<< this is the folder where you install Vanilla if you want it in the root of the subdomain.

    Not this

    http://forums.elitedominancegaming.net/forums

    Make sure you are uploading the files to the right folder whatever it may be.

    I don't know what you're talking about. Please refer to my response to hgtonight's comment.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    If your directory root where you installed is called http://forums.elitedominancegaming.net/

    then it would be in the root of that directory so you only need /

    If you installed it inside another subdirectory http://forums.elitedominancegaming.net/forums

    then that is where the forum should be , it is either one or the other.

    Your htaccsses file needs to reflect the right thing either / or forums depending on if you installed in the root of that directory or a subfolder in that subdirectory...

  • The htacess file does in fact reflect that, the file reads as follows:

    Original

    If you modify this file then change the above line to: # Modified


    RewriteEngine On
    # Certain hosts may require the following line.
    # If vanilla is in a subfolder then you need to specify it after the /.
    # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
    # RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Not really, it has a # in front of it which disables the whole thing. So based on this you say your forum is here? http://forums.elitedominancegaming.net/

    RewriteEngine On
    # Certain hosts may require the following line.
    # If vanilla is in a subfolder then you need to specify it after the /. 
    # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
     RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
    
    
    
    if it is here  http://forums.elitedominancegaming.net/forums
    
    RewriteEngine On
    # Certain hosts may require the following line.
    # If vanilla is in a subfolder then you need to specify it after the /. 
    # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
     RewriteBase /forums
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
  • YESSS, it's working! Thumbs up man, you rock!

  • End Result: Forums working great, CSS is now working with HTML. Kudos to hgtonight for giving me my first welcome, and to vrijvlinder for solving my issue. Final product visible here, thanks to all that helped!

Sign In or Register to comment.