Solved

Rewrite rule for 301 redirect

Posted on 2009-06-29
8
214 Views
Last Modified: 2012-05-07
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
0
Comment
Question by:JRockFL
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 17

Accepted Solution

by:
jasonsbytes earned 500 total points
ID: 24739793

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

Open in new window

0
 
LVL 17

Expert Comment

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

Open in new window

0
 
LVL 8

Author Closing Comment

by:JRockFL
ID: 31598093
Thank you!
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Author Comment

by:JRockFL
ID: 24739889
Should it redirect me to the sell-jewlery-faqs.asp  page?
0
 
LVL 17

Expert Comment

by:jasonsbytes
ID: 24740058
Yes, I noticed you keep spelling jewelry wrong... could that be an issue?
0
 
LVL 8

Author Comment

by:JRockFL
ID: 24740220
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
 
LVL 8

Author Comment

by:JRockFL
ID: 24740236
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
 
LVL 17

Expert Comment

by:jasonsbytes
ID: 24740450
yes
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

617 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