سؤال

I have just created sub folder called "blog", so access link is example.com/blog.

I have installed WordPress in blog folder, configure database and all but when access above link then I am getting error called

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

I am using godaddy server ,Also I have checked for .htaccess file but there is not .htaccess file created for main domain. Should I need to create separate .htaccess for sub folder "blog" to solve this error?

If yes then what code I need to put in .htaccess for sub folder internal server error remove.

هل كانت مفيدة؟

المحلول

you need to create .htaccess file. Create .htaccess file and paste below code in it

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

# END WordPress
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى wordpress.stackexchange
scroll top