.htaccess configuration.
-
I am trying to simplify my .htaccess on public_html folder. Initially it was full of drupal related stuff but now I have cleared and wrote following only.
# BEGIN WordPress RewriteEngine on # # Unless you have set a different RewriteBase preceding this # point, you may delete or comment-out the following # RewriteBase directive: RewriteBase / # # if this request is for "/" or has already been rewritten to WP RewriteCond $1 ^(index\.php)?$ [OR] # or if request is for image, css, or js file RewriteCond $1 \.(gif|jpg|css|js|ico)$ [NC,OR] # or if URL resolves to existing file RewriteCond %{REQUEST_FILENAME} -f [OR] # or if URL resolves to existing directory RewriteCond %{REQUEST_FILENAME} -d # then skip the rewrite to WP RewriteRule ^(.*)$ - [S=1] # else rewrite the request to WP RewriteRule . /index.php [L] # # END wordpress # Set the default handler. DirectoryIndex index.php
Problem is that I have to put extra “DirectoryIndex index.php” other wise my WP site say’s “Wait A Sec” and than redirect to https://www.domain.com/dp.
So not sure what is the problem here.
Appreciate your help.
- The topic ‘.htaccess configuration.’ is closed to new replies.