• Resolved Phet Maly

    (@phet-maly)


    Hey guys,

    Not sure what this code is actually doing :

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /shop/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /shop/index.php [L]
    </IfModule>

    I know it’s a URL rewrite rule, but what is it actually doing?

    Can anyone “translate” in plain English? 😉

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • What it’s doing it teling your server that any URL that’s “not found” in the normal file system should be diverted to WordPress to let WordPress take care of it and serve out the correct content for that URL.

    Thread Starter Phet Maly

    (@phet-maly)

    Thanks for the reply!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not sure about .htaccess RewriteRule’ is closed to new replies.