Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

.htaccess

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
Close
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
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back