xernt.com




Xernt helps you find up-to-date answers & allows to take a part in building human knowledge database.
This Post below ↓ is only visible to you.
It is sheduled to delete with all the changelog & comment data attached. You can cancel deletion at any time.
4 weeks left
TIP. Editing item cancels the deletion shedule automatically.
htaccess apache redirect

htaccess apache redirectEdit

 
 
To redirect you use (create .htaccess file in your directory) htaccess apache redirect:

RewriteRule sub.domain.com domain.com [R=301]

or

Redirect 301 sub.domain.com domain.com


To redirect to a new domain:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://newdomain.com/$1 [R=301,L]


where replace newdomain.com to your domain.
NOTICE: mod_rewrite needs to be enabled.


To redirect to www (passes subdomains):

Options +FollowSymlinks
RewriteEngine On

RewriteCond %{HTTP_HOST} ^(.+)?\.path-of-power.com$ [NC]
RewriteRule ^(.*)$ http://path-of-power.com/$1 [R=301,L]


where replace path-of-power.com to your domain.
NOTICE: mod_rewrite needs to be enabled. Edit

Please help the author, by sending a donation. Thank you.
Comment  · 2 years ago
Please login or create an account to post a comment.
Follow Post
Related Posts
1,280 views


 
 
118 online
About · Blog · Explore · Privacy · Terms · Help  up

These items will be permanently deleted and cannot be recovered. Are you sure?