Solved

Rewrite rule for 301 redirect

Posted on 2009-06-29
8
207 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 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
 
LVL 8

Author Comment

by:JRockFL
ID: 24739889
Should it redirect me to the sell-jewlery-faqs.asp  page?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

13 Experts available now in Live!

Get 1:1 Help Now