NameSilo

.htaccess

Spacemail by SpaceshipSpacemail by 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.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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
•••
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back