Ho to create .htaccess to resolve canonical issues?
Like non-www to www
Thanks
Blaire
Ho to create .htaccess to resolve canonical issues?
Like non-www to www
Thanks
Blaire
Rock _a.k.a._ Jack
Windows Hosting || Windows Reseller Hosting
Cloud Hosting || Powerful Dedicated Servers
Follow eUKhost on Twitter || Join eUKhost Community on Facebook
For complaints, grievances or suggestions kindly email our FeedBack Dept.
Proper action will be taken accordingly & instantaneously!
Hi Blaire!
You can use following code in your .htaccess :-
Note;- replace the "your-domain.com" with your actual domain name.Code:Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your-domain.com [NC] RewriteRule ^(.*)$ http://www.your-domain.com/$1 [R=301,L]
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || Skype : mark_ducadi
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________
Please email cmo[at]eukhost.com if you have any questions or need my assistance
There are currently 1 users browsing this thread. (0 members and 1 guests)