Dynadot โ€” .com Registration $8.99

.htaccess

Spaceship Spaceship
Watch

tandiono

Tandiono.comEstablished Member
Impact
0
Hi! How can i reditect example :

sdasada.example.com and asdasda.example.com/asdasda

THis is my current .htaccess :

RewriteEngine on
RewriteCond %{HTTP_HOST} !^example.com
RewriteRule ^(.*)$ http://example.com/$1 [R=301]

It can only redirect for the subdomain (subdomain.example.com) but not for the (example.com/adasad) , which i would also like to force it redirect to other site. Is there any way that i can do? Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
0
•••
1) Meta Redirect:

<meta http-equiv="refresh" content="10; url=http://mynewsite.com/">

2) htaccess Redirect:
Redirect oldpage.html http://yoursite.com/newpage.html
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back