Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Rewrite rule for 301 redirect

Posted on 2009-06-29
8
Medium Priority
?
219 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
  • 4
  • 4
8 Comments
 
LVL 17

Accepted Solution

by:
jasonsbytes earned 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month10 days, left to enroll

926 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