1
vote
Accepted
how to redirect a web page based on domain name using .htaccess
The recommendation from the Apache project is:
In general, you should only use .htaccess files when you don't have access to the main server configuration file. [In other words: your site is on ...
- 74k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
.htaccess × 2786apache-2.2 × 1103
mod-rewrite × 699
apache-2.4 × 373
redirect × 328
rewrite × 312
php × 208
nginx × 133
wordpress × 131
apache2 × 129
301-redirect × 116
linux × 113
virtualhost × 73
https × 72
subdomain × 65
regex × 55
rewritecond × 55
security × 53
ubuntu × 51
ssl × 49
httpd.conf × 46
web-server × 39
.htpasswd × 36
httpd × 35
url × 34