Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress htaccess: can’t approach wp

Discussion in 'Misc WordPress Requests' started by Borren, Nov 15, 2017.

  1. Borren

    Guest

    htaccess: can’t approach wp, by Borren

    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

    htaccess: can’t approach wp
     
    #1

Share This Page

Web Hosting