Solved

Set 301 redirection on basic html site.

Posted on 2013-06-28
5
311 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
This article discusses four methods for overlaying images in a container on a web page
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now