• Hi,

    I just installed wp next to an existing site to make an redesign in WP.
    But I can’t reach the wp directory and I get an 404. I find out that the problem is the htaccess file. I can’t delete the file otherwise the old site doesn’t work anymore.

    Can anyone help me to write an line that make an exception to the wp dir ?

    content of the ht access:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www..*
    RewriteCond %{HTTP_HOST} !^$
    RewriteCond %{HTTP_HOST} ^([^.]*).(nl|nl/|eu|eu/)
    RewriteRule ^.*$ http://www.%1.%2%{REQUEST_URI} [R=301,L]
    #alias rules voor project
    RewriteRule ^project/([0-9]{1,7})/(.*)/?$ /bekijkproject.php?pid=$1
    #rewriterule voor publicaties
    RewriteRule ^(.*)/artikel/([0-9]{1,})/(.*)/?$ /bekijkpublicatie.php?id=$2&page=$1
    #Archieflink
    RewriteRule ^([^/\.]+)-archief([^/]{0,})/?$ /content/$1.php?archief
    #Redirects
    RewriteBase /

    RewriteCond %{HTTP_HOST} ^www.rrssc.eu$
    RewriteRule ^testimonials/?$ content//testimonials\.php [L]

    RewriteCond %{HTTP_HOST} ^www.rrssc.eu$
    RewriteCond %{THE_REQUEST} /testimonials\.php
    RewriteRule ^testimonials\.php$ http://%{HTTP_HOST}/testimonials [R=301,L]

    RewriteCond %{REQUEST_URI} !^/content/
    RewriteCond %{REQUEST_URI} (\.php$|\.htm$|\.html$|^[^\.]+/?$)
    RewriteRule ^(.*)$ /content/$1

Viewing 1 replies (of 1 total)
  • Thread Starter Borren

    (@borren)

    I already found the solution by use this line:
    RewriteRule ^(wp)($|/) – [L]

    wp = the directory name
    now this dir is an exception

Viewing 1 replies (of 1 total)

The topic ‘htaccess: can’t approach wp’ is closed to new replies.