Q&A Categories
- Astrology
- Beauty & Style
- Business & Finance
- Cars & Transportation
- Computers & Internet
- Consumer Electronics
- Dining Out
- Education & Reference
- Entertainment & Music
- Environment
- Everything Else
- Family & Relationships
- Food & Drink
- Games & Recreation
- Health
- History
- Home & Garden
- Legal
- Local
- News & Events
- Pets & Animals
- Politics & Government
- Pregnancy & Parenting
- Science & Mathematics
- Shopping
- Social Science
- Society & Culture
- Sports
- Travel
- Video Answers
Find a Question:
Sponsered Answers
what is the difference between url rewrite and redirect?
Jan
2
2010
i want to redirect url using htaccess but i dont know which rule should be written to solve the issue.
page1: http://mydomain.com/userprofilename.php?user
page2: http://mydomain.com/user
i want to redirect page2 to page1 where page2 is not exist on server.
please help me asap.
Answer this Question
You must be Logged In to post an Answer.
Not a member yet? Sign Up Now »
Star Points Scale
Earn points for Asking and Answering Questions!
[1 - 25
[26 - 50
[51 - 500
[501 - 5000
[5001 - 25000
[25001+ 
Answer #1
Make certain all of this code is on the same line no matter how yahoo formats it. You may need to create a index.html page or some other standard page to actually redirect the user if the first doesnt work try the second.
Redirect /user/ http://mydomain.com/userprofilename.ph…
Redirect /user/oldfile.html http://mydomain.com/userprofilename.ph..