Need a 301 redirect advice for https site

manojkumar77

New member
Hi All


One of my site is nationalcreditorganization.com and it is a secured site.

I do wanna redirect all of its domain format to "https"

It works fine for every format for non-www format of the site, but does not work for www format.

.htaccess goes like this:

rewriteengine on


Options +FollowSymLinks
ErrorDocument 404 /404error.php
rewritecond %{HTTP_HOST} ^nationalcreditorganization.com$ [NC]
rewriterule ^(.*)$ https://www.nationalcreditorganization.com/$1 [R=301,L]
rewritecond %{THE_REQUEST} ^.*/index.php
rewriterule ^(.*)index.php$ https://www.nationalcreditorganization.com/$1 [R=301,L]



how to make redirect www format of my site to https without affecting my current process of redirect

Any new idea, apart from above codes, implementing the whole concept would also be welcomed....

thanks in advance
 
On the off chance that you have to change the URL of a page as it is appeared in web index results, we prescribe that you utilize a server-side 301 divert. This is the most ideal approach to guarantee that clients and web search tools are coordinated to the right page. The 301 status code implies that a page has for all time moved to another area.
 
301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".
 
If you need to change the URL of a page as it is shown in search engine results, we recommend that you use a server-side 301 redirect. This is the best way to ensure that users and search engines are directed to the correct page. The 301 status code means that a page has permanently moved to a new location.
 
Back
Top