The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Editing the .htaccess file and uncomment the RewriteBase rule

Discussion in 'General Discussion' started by Tara, Jun 4, 2016.

  1. Tara

    Tara Registered

    Joined:
    Jun 4, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Altamonte Springs, FL
    cPanel Access Level:
    Website Owner
    Hello All,

    If anyone can help me it would be greatly appreciated. I have been up all night trying to crack this code.

    I just installed an Affiliate Management Program ( ) on my domain directory
    - Removed -

    Every installed ok; however when I try to view now, it's just blank.. no error code.. nothing! There were some recommendations to:

    Try editing the .htaccess file and uncomment the RewriteBase rule. I have found these files and tried many different variations that I located searching for help on the web and nothing has worked.

    Here is my code now:

    Code:
    #<IfModule mod_rewrite.c>
    RewriteEngine On
      
        # Some accounts require the RewriteBase to be set
        #RewriteBase /
      
        #RewriteRule ^id/(.+)$ jrox.php?id=$1 [l,nc]
      
        # Rewrite rule for WordPress
        #RewriteRule ^(wp-(content|admin|includes).*) wp/$1 [L]
      
        # Rewrite rule for replicated webpages
        # RewriteRule ^r/(.+)$ jrox.php?rep=$1
      
        RewriteCond %{REQUEST_URI} ^/system.*
        RewriteRule ^(.*)$ index.php?/$1 [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.+)$ index.php?/$1 [L]
    #</IfModule>
    
    
    Does anyone have any ideas? Please let me know.

    Thanks,

    Tara
     
    #1 Tara, Jun 4, 2016
    Last edited by a moderator: Jun 4, 2016
  2. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    79
    Likes Received:
    13
    Trophy Points:
    8
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I'm not familiar with the program you're using, but before you uncomment the RewriteBase rule, which you would do just be deleting the "#" before that line, you should look for an error_log file in the directory where you installed your affiliate program to see if it's throwing a fatal PHP error, which would give you the blank white screen.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You may also want to upload a test HTML file after temporarily disabling your custom Mod_Rewrite rules to verify if non-PHP files load correctly. This will help you narrow down the issue to the specific PHP script if the blank page stems from the PHP application itself.

    Thank you.
     
Loading...

Share This Page