Apache 2.2 to 2.4 upgrade Redirect Rules change

Discussion in 'Apache' started by Mar123, Jul 3, 2013.

  1. #1
    There has been a server change where my site is hosted at GoDaddy, which apparently made some of the redirect rules work differently. Server was upgraded from Apache 2.2 to 2.4 Right now all my webpages have /index.php/ inserted between domain and a link.
    I found that there are some redirect rules in .htaccess file:
    <IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteRule ^$ public/index.php [L]

    #demo images
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^public\/upload\/(.*)$ http://demoimg.livecart.com/upload/$1 [R,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # if no rule matched the url, we redirect to our front web controller
    RewriteRule ^(.*)$ public/index.php?route=$1 [QSA,L]
    </IfModule>

    How can I rewrwite the rules to make the problem go away?
    Thank you
     
    Last edited: Jul 3, 2013
    Mar123, Jul 3, 2013 IP