tags:

views:

27

answers:

2
A: 

you have

www.mywebsite.com/index.php?action=about_us

and you want

www.myswebsite.com/about_us.html

in your .htaccess file add a line to the end of this file:

redirect /about_us http://www.myswebsite.com/about_us.html

voila

http://affiliate-minder.com/internetmarketing/using-htaccess-file-for-affiliate-link-redirects/

PK

Pavan
+1  A: 

Turn on the rewrite engine. The RewriteRule will fetch the page in the second parameter when the first parameter is called. So www.myswebsite.com/about_us.html will load www.mywebsite.com/index.php?action=about_us, but the URL in the address bar will still be www.myswebsite.com/about_us.html. The [NC] at the end just makes it case insensitive.

RewriteEngine On
RewriteRule ^/about_us\.html$ index.php?action=about_us [NC]

More info: http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

alex