Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Rewrite rule for 301 redirect

Posted on 2009-06-29
8
Medium Priority
?
216 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 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

Plug and play, no additional software required!

The ATEN UE3310 USB3.1 Gen1 Extender Cable allows users to extend the distance between the computer and USB devices up to 10 m (33 ft). The UE3310 is a high-quality, cost-effective solution for professional environments such as hospitals, factories and business facilities.

Question has a verified solution.

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

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…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

715 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