My Local Services UK
My Local Services USA
Business Discussion
Marketing Advice & Assistance
and some business banter...


Go Back   My Local Business Forum > The Business Forums > Computers, Coding, Websites or anything techie

Computers, Coding, Websites or anything techie Help, assistance, advice and discussions on anything to do with computers, hosting, web coding or anything technical!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-11, 07:24 AM
sunilverma's Avatar
Banned
 
Join Date: Jan 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Smile How to resolve canonical Issue If site is hosted on Windows Server?

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

Reply With Quote

  #2 (permalink)  
Old 04-02-11, 08:49 AM
sjr4x4's Avatar
Professional Waffler
 
Join Date: Sep 2009
Location: Bills Town, Wark's, UK
Age: 43
Posts: 5,131
Thanks: 1,076
Thanked 486 Times in 405 Posts
Facebook Profile LinkedIN Profile Twitter Profile
Default Here you go

301 Redirect Code :: How To Configure a 301 Permanent Redirect, htaccess, ASP, Windows
__________________
cheers Steve
Forum Admin - teaboy and general gofer...

Forum Rules and FAQ's at a glance | Find me on Google+ | or even Facebook!

My Local Services - The UK and US Online Business Directory | JobsVitae - Recruitment Help and CV Creation

If you're here to spam, then expect a ban

Reply With Quote
  #3 (permalink)  
Old 02-06-11, 11:56 AM
PollyannaMcAleer's Avatar
Business Start Up
 
Join Date: Jun 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to PollyannaMcAleer Send a message via MSN to PollyannaMcAleer Send a message via Yahoo to PollyannaMcAleer
Default

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.

Reply With Quote
  #4 (permalink)  
Old 02-06-11, 02:25 PM
proval123's Avatar
Growing Business
 
Join Date: Feb 2011
Posts: 36
Thanks: 0
Thanked 3 Times in 3 Posts
Default Good information

Thanks for the suggestion. I need ti check first its really work are not.
__________________
NOC Services / Server Support

Reply With Quote
Reply

Bookmarks

Tags
consulting, seo



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosted Exchange 2010 Only £3.99pm for MLF Members Cloud4 The Village Market 3 29-11-10 09:38 AM
VAT Issue hdm Accounts, Bookkeeping & Finance 5 26-10-10 10:41 AM
20% off UK's Best Hosted Exchange Cloud4 The Village Market 0 13-09-10 11:37 PM
If your cut finger can heal, why not your bad back or other long term health issue? drMatt Religion, Politics, Rants and all things Controversial 0 18-04-10 05:20 PM
Server Guy Server Guy Introductions - Come and Say Hello! 10 08-10-09 07:40 PM

PublicLiabilityInsurance.org - Public Liability Insurance    List your business for free with Qype  Try KashFlow accounts for free


All times are GMT +1. The time now is 07:48 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0
This Business Forum is owned and run by Lowi Ltd | Minerva Mill | Station Road | Alcester | Warwickshire | B49 5ET | UK | Reg: 5542028 | VAT: 871389294