Need help with .htaccess stuff

Discussion in 'PHP' started by thesamemanhal, Oct 4, 2010.

  1. #1
    I have recently downloaded and installed a fresh script right from the authors official website which is similar to a website that I bought a while ago.
    A quick comparison of the .htaccess file between the two versions I found the differences like this

    #############

    ## part of the original .htacess has
    <IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [L]

    RewriteRule ^admin /admin.php [L]
    RewriteRule ^(.*)$ /index.php/$1 [L]
    </IfModule>

    # However the website I bought has something like this
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
    </IfModule>

    #############

    obviously the two versions are different; something that makes me worry!. I am not good with these stuff so I need your help if you could comment on this whether something is wrong.
     
    thesamemanhal, Oct 4, 2010 IP
  2. RandyCram

    RandyCram Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The website you bought could be an older version or something if it is the same exact script. Also if they are not the same all of those .htaccess commands are very common ones that are used among almost all sites that use .htaccess.

    Only real difference i see in the fresh one you just installed is the admin, which doesn't change much except one url.

    I think as long as your current one works, you are fine.
     
    RandyCram, Oct 5, 2010 IP
  3. thesamemanhal

    thesamemanhal Active Member

    Messages:
    1,126
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Thank you, I was worry at the part

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]


    but I will let it stay as is then.
     
    thesamemanhal, Oct 5, 2010 IP