Something very weird is happening here

Discussion in 'Apache' started by dbl07dee, Jul 8, 2008.

  1. #1
    This page contains an index.php file, however when loaded, as seen it results in an unwanted redirect

    Anyone familiar with htaccess, feel free to offer suggestions or comments

    Mod_rewrite is enabled on the server.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /



    Any includes needed????
     
    dbl07dee, Jul 8, 2008 IP
  2. dustin56

    dustin56 Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Might it be that the server is not setup to treat php files as an index.
    On some hosts you have to configure this in your control panel. What control panel are you using. Can you view the correct output if you browse directly to the index.php.
     
    dustin56, Jul 8, 2008 IP
  3. proprod

    proprod Active Member

    Messages:
    216
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Try this:

    
    DirectoryIndex index.php
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    </IfModule>
    
    
    
    Code (markup):
    Also, judging by what I'm receiving when manually typing in index.php, the above is probably not the problem. There appears to be something awry in the idex.php code, resulting in the DOC_ROOT in the address.
     
    proprod, Jul 8, 2008 IP
  4. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yea that's a php redirect not mod rewrite (unless your admin has tinkered with the apache confs), you probs din't do your install correctly or something wrong in the config. Btw you need ioncube_loader_lin_4.4.so for your script to work. And its barking that you don't have it so that's probs your issue. Ask your host to install it or create your own php.ini and specify the path to where you dropped it.
     
    007c, Jul 10, 2008 IP