0
I am working on a site which has .htaccess
file in root. There is a folder named babynames. This folder also has .htaccess
file. I need the code to redirect from NON WWW to WWW for this folder. Anybody comes to this folder without www should be redirected to www.
The code at /babynames/.htaccess
is
RewriteEngine On RewriteBase /babynames/
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.astrolika.com/babynames/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /babynames/404.php/$1 [L,QSA]
ErrorDocument 404 /babynames/404.php
DirectoryIndex index.php
Can anybody guide me to resolve this issue.
What issue, precisely? – user1686 – 2018-12-08T11:43:58.830
If i use https without www it does not redirected to www for folder babynames – amita734 – 2018-12-08T13:27:52.390