Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 329
  • Last Modified:

Set 301 redirection on basic html site.

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
dotsandcoms
Asked:
dotsandcoms
  • 3
  • 2
1 Solution
 
GaryCommented:
Redirect every page to the same page, to another site..question is not clear.
What do you currently have in your htaccess
0
 
dotsandcomsAuthor Commented:
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
 
GaryCommented:
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
 
dotsandcomsAuthor Commented:
Here we are using IIS server. is there any other method in iis for 301 setting?
0

Featured Post

Enhanced Intelligibility Without Cable Clutter

Challenge: The ESA office in Brussels wanted a reliable audio conference system for video conferences. Their requirement - No participant must be left out from the conference and the audio quality must not be compromised.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now