Computer Tech Drive

Technology and Internet

Skip to content
Menu
  • Privacy Policy
  • Terms Of Service
  • Advertise
  • Contact Us

Category: apache

Redirect URL and all subfolders in .htaccess

by Greg BPosted onNovember 14, 2011November 20, 2011

The following code will redirect you main URL and all of its sub folders and pages to a new page. This comes in quiet handy if you are moving a site with a lot of active pages.

Here is the code.

RewriteEngine on RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L] 
Permanent link to this post (48 words, estimated 12 secs reading time)
Share
Share
Read More
© Copyright 2021 – Computer Tech Drive
Cambium Theme by BestBlogThemes ⋅ Powered by WordPress
Share
Visit Us On Facebook