Editing the .htaccess file and uncomment the RewriteBase rule

Tara

Registered
Jun 4, 2016
1
0
1
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
 
Last edited by a moderator:

linux4me2

Well-Known Member
Aug 21, 2015
259
80
78
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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.