• hello! i need to add to the htaccess file the mod_rewrite.c…. for the permalinks.

    But there is already an htaccess file with these lines in the beginning “Options -Indexes
    # BEGIN W3TC Browser Cache
    ……

    So, should i add the rewrite before or after that?

    thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • After that and it should look like this.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /your url/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /your url/index.php [L]
    </IfModule>
    # END WordPress

    Thread Starter angie_s

    (@angie_s)

    i think i made a mistake.

    first is this code:

    Options -Indexes
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    # END W3TC Browser Cache

    And then i will add the # BEGIN WordPress….?

    As I recall when you use W3TC it puts its stuff ahead of the #BEGIN WordPress so yes try it that way.

    Thread Starter angie_s

    (@angie_s)

    i get internal server error

    Your .htacces file should look like this
    # BEGIN W3TC Browser Cache
    <IfModule mod_deflate.c>
    <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
    </IfModule>
    AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
    # DEFLATE by extension
    AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
    </IfModule>
    # END W3TC Browser Cache
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thread Starter angie_s

    (@angie_s)

    nope… and it doesn’t clarify nothing…

    any ideas?

    [ No bumping please. ]

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘permalinks’ is closed to new replies.