Solved

Set 301 redirection on basic html site.

Posted on 2013-06-28
5
316 Views
Last Modified: 2013-07-03
Hello Experts,

We have one html site and we need to set 301 redirection with full site each and every page. we have already set 301 redirection on htaccess but it's not working.


below is our website url.

http://elegantestore.com/volusion-ecommerce-capabilities.html
0
Comment
Question by:dotsandcoms
  • 3
  • 2
5 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39285989
Redirect every page to the same page, to another site..question is not clear.
What do you currently have in your htaccess
0
 

Author Comment

by:dotsandcoms
ID: 39286221
here we need to set 301 redirection means if any one open the site it's always open with www for e.g.

if we open http://elegantestore.com/volusion-ecommerce-capabilities.html then it's redirect to http://www.elegantestore.com/volusion-ecommerce-capabilities.html


Our website is hosted on windows (IIS) server.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39286698
RewriteEngine On
RewriteCond %{HTTP_HOST} ^elegantestore.com
RewriteRule (.*) http://www.elegantestore.com/$1 [R=301,L]

Open in new window


Edit
Bit confused are you using Apache or IIS? You cannot have htaccess on IIS.
0
 

Author Comment

by:dotsandcoms
ID: 39288989
Here we are using IIS server. is there any other method in iis for 301 setting?
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39290267
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question