
As I know that canonical issue can be resolve by editing .htaccess file if site is hosted on Unix server.
How can we resolve canonical issue if my site is hosted on Windows Server?
Thanks
lucintel.com
Hi all ![]() As I know that canonical issue can be resolve by editing .htaccess file if site is hosted on Unix server. How can we resolve canonical issue if my site is hosted on Windows Server? Thanks lucintel.com
How to solve canonical issues: We can solve this issue by redirecting all these URLs to a single URL permanently. By uploading a .htaccess file we can easily redirect all the URLs. 1: Following is the code to redirect non www domain (yoursite.com/) to www domain (yoursite.com/) permanently (301): Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^yoursite.com RewriteRule ^(.*)$ yoursite.com/$1 [R=permanent,L] 2: Following code is to redirect index.html to yoursite.com/ RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /.*index.html HTTP/ RewriteRule ^(.*)index.html$ /$1 [R=301,L] 3: Following code is to redirect index.php to yoursite.com/ RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /.*folder/index.php HTTP/ RewriteRule ^(.*)folder/index.php$ /folder/$1 [R=301,L] After creating the .htaccess file we just need to upload it to the root folder of the website.
Thanks for the suggestion. I need ti check first its really work are not. proval123 |
Recent Posts AI is the future of technology? 2 comments Best Platform for Azure Certified Professionals? ![]() 2005 - 2022 the rise and fall of mobile traffic - and why 4 comments Office security 1 comments Scheduling meetings - Acuity nails it! Which Freelance Website is best for Pick the Project? 5 comments Wordpress alternative 6 comments ![]() Email checker - see if your email has been compromised 14 comments Anyone used Wix? 25 comments Business Websites... 3 comments I Dont Need a Website...! Massachusetts Institute Of Technology Anyone used EMERGE App? 1 comments ![]() Krack Attacks - WiFi Issue - The realistic risk to you 7 comments ![]() Opening Outlook attachments prompt for a password 4 comments |