2017-06-19 3 views
0

My Domain (example.com) auf public_html/cushbu wies es ein Wordpress-ProjektWordpress: 500 Interner Serverfehler nach url Ändern

so haben sich verändert enthält i die Einstellungen in wp-config Datei

define('WP_HOME','http://example.com'); 
    define('WP_SITEURL','http://example.com'); 

Auch in .htaccess Datei, das ist unter pubic_html/cushbu Ordner

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

# END WordPress 


# Wordfence WAF 

<Files ".user.ini"> 
<IfModule mod_authz_core.c> 
    Require all denied 
</IfModule> 
<IfModule !mod_authz_core.c> 
    Order deny,allow 
    Deny from all 
</IfModule> 
</Files> 

# END Wordfence WAF 

#disable hotlinking of images with forbidden or custom image option 
RewriteEngine on 
RewriteCond %{HTTP_REFERER} !^$ 
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?example.com [NC] 
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC] 
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L] 

bekam ich 500-Fehler, wenn meine Domain zugreift (www.example.com)

+0

Änderung RewriteBase /example.com zu RewriteBase/cushbu –

+0

auch RewriteRule /cushbu/index.php ändern [L] –

+0

Nop noch den gleichen Fehler – Jabaa

Antwort

1

Entfernen Sie example.com in .htaccess aus dem RewriteBase und RewriteRule. Es ist wahrscheinlich am einfachsten für Sie, die Datei in bck.htaccess umzubenennen und Wordpress eine neue für Sie erstellen zu lassen.

+0

Bitte aktualisieren Sie mit '.htaccess Datei' – Jabaa

+0

sehen Sie die Kommentare von @ shital-marakana, das ist genau das gleiche wie meine Antwort. – jojomojo

Verwandte Themen