i would like to send my users clicking on
is it possible to do this with htaccess ?
if so what should i write into the file?
You need to give more information.
A very simple .htaccess redirect is simply:
But I'm assuming you want something more in depth than that?Code:
Redirect http://www.mysite.com/page_1243423423.php http://www.mysite.com/profile-name.php
It means if you place that code in your ".htaccess" file in your site's root, it will redirect all traffic (including search engines) from the first URL to the second)
But I need more information from you on exactly what you want to achieve.
I'm not sure whether mod_alias (the Redirect module) will keep the REAL URL hidden because it requires an absolute URL for the redirection.
mod_rewrite will, however, so your request is for:I think what Alec was alluding to was that such a simple redirect is NOT the norm so, if you were looking for other redirects to be handled with this code, it will not happen because there is no way to map profile-name to page_1243423423.Code:
RewriteRule ^/?profile-name\.php$ page_1243423423.php [L]