• Resolved mike_g

    (@mike_g)


    Hi there,

    I am trying to use a date and name based permalink structure for my wordpress blog. But when I add the following code in my .htaccess file

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

    The first part of my .htaccess-file doesn’t work anymore, it shows a error page when I visit that website.

    My complete .htaccess file looks like this:

    # Fix for the missing-trailing-slash for directories # on htaccess-redirected domains/subdomains.
    RewriteEngine On
    RewriteCond s%{HTTPS} ^((s)on|s.*)$ [NC] RewriteRule ^/*(.+/)?([^.]*[^/])$ http%2://%{HTTP_HOST}/$1$2/ [L,R=301]
    
    Options +FollowSymlinks
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^wijzijnvetcool.nl [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.wijzijnvetcool.nl [NC]
    RewriteCond %{REQUEST_URI} !/sites/wijzijnvetcool/  [NC]
    RewriteRule ^(.*)$ sites/wijzijnvetcool/$1 [L]
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /sites/luxurious/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /sites/luxurious/index.php [L]
    </IfModule>
    
    ErrorDocument 401 /sites/g-network/errors/401.php
    ErrorDocument 403 /sites/g-network/errors/403.php
    ErrorDocument 404 /sites/g-network/errors/404.php
    ErrorDocument 500 /sites/g-network/errors/500.php

    What is wrong? Thanks in advance!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Problem with the .htaccess-file’ is closed to new replies.