htaccess – Moving & Renaming Pages
Here’s how the .htaccess gets written to permanently redirect visitors and search engines:
[php]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^inflatableboats4less.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.inflatableboats4less.com$
RewriteRule ^aboutus\.php$ "http\:\/\/www\.inflatableboats4less\.com\/boats\/index\.php\?id\=2" [R=301,L]
[/php]
First, you need to turn on the RewriteEngine.
The first rewrite statement is without the ‘www’, the second one includes the ‘www’.
The RewriteRule takes users from the requested aboutus.php page to the full URL of the new page.
The [R=301,L] at the end of the rule tells the search engines that this is a permanent change, and to update their links.
Random Posts
Twitter Feed
- No public Twitter messages.
Tags
android aweber backup book clubrunner dacdb email marketing facebook fbi foursquare functions gmail gmail filters gmail signatures google google buzz iPad iphone linkedin linux Local Marketing myspace newsletter openoffice os x polio plus prescott az prescott enews prescott young professionals press releases projects ratepoint Rotary Club search security seo social social media techcrunch tweetdeck twitter website speed windows wonderhowto wordpressSigma Web Technologies








