Reply to O.T. .htaccess

Your name:

Reply:


Posted by MS on 11/20/06 10:32

I am not an expert at .htaccess but this should be straight forward for
somebody in the know and could save me hours of research.

I have URLs to profiles...

www.mysite.com/profile.php?lookup=7

where the 7 is the user_id.

What I want is to make an Easy URL as follows

www.mysite.com/myusername

Obviously this page does not exist, but what I want to try and accomplish
is...

If myusername is not a valid page I want to redirect to index.php passing
myusername as an argument.

EG.
www.mysite.com/index.php?username=myusername

Where I will then search for the username within my database and then,if
found, redirect to the correct page..
www.mysite.com/profile.php?lookup=7

Or is there a better way to do this?

Thnx
MS

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация