jeudi 9 novembre 2017

Redirect is not working for wordpress on web hosting server

I am using web hosting where I have installed wordpress. I am facing a beginners issue i.e when I access my webpage then server returns index of page.

enter image description here

what I need to configure so that server return actual webpage instead of Index of?

.htaccess file in main public_html folder contains following content

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

where as .htaccess in wb folder contains following content

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

# END WordPress

I already tried to modify main folder .htaccess file for redirect but it did not solve the problem.




Aucun commentaire:

Enregistrer un commentaire