I am building a web app that puts out a link like the following:
http://www.sample.com/?a=bj7phm
I would like for it to look something like this:
Is this possible within the HTACCESS?
-B
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to do URL rewriting, you first need to:
mod_rewriteenabled on your server..htaccessfile.(
AllowOverridemust be set toAllor includeFileInfo)Then create the following
.htaccessfile in your web root:You can customize
RewriteRuleas much as you want.The first parameter is the regular expression to match the
REQUEST_URIwith (relative to the folder the.htaccessis in).The second parameter is what you want to rewrite it to,
$nbeing your match groups.