Rewrite rule for 301 redirect

How can I add a rewriterule 301 redirect for this?
Old: www.domain.com/html/faq.html
New: http://domain.com/sell-jewlery-faqs.asp
LVL 8
JRockFLAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jasonsbytesConnect With a Mentor Commented:

RewriteEngine on
RewriteRule ^html/faq.html$ sell-jewlery-faqs.asp [R=301,L]

Open in new window

0
 
jasonsbytesCommented:
or
RewriteEngine on
RewriteRule ^/?html/faq.html$ http://domain.com/sell-jewlery-faqs.asp [R=301,L]

Open in new window

0
 
JRockFLAuthor Commented:
Thank you!
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
JRockFLAuthor Commented:
Should it redirect me to the sell-jewlery-faqs.asp  page?
0
 
jasonsbytesCommented:
Yes, I noticed you keep spelling jewelry wrong... could that be an issue?
0
 
JRockFLAuthor Commented:
That was the link they provided me, and it does work.
There is an httpaccess file on the web site and their are asp files, but isnt the httpacess file for apache server?

If this is on IIS, then any changes would not work, correct?
0
 
JRockFLAuthor Commented:
This was already in the file
RewriteRule (.*) http://www. domain.com/$1 [R=301,L]

Should this redirect everthing so it has the www ?
0
 
jasonsbytesCommented:
yes
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.