php - htaccess for two domains using one hosting account? -
php - htaccess for two domains using one hosting account? -
my setup thus: 1 hosting business relationship 2 separately purchased domains. 1 domain has no htaccess file other 1 does. htaccess file doesn't seem work @ all. possible have 1 domain without htaccess utilize configuration settings on go daddy , let's say, 404 pages , other domain htaccess ignore settings , hear htaccess rewrites?
*i mention also, sec domain works without having type primary domain address in url. thing want add together htaccess file proper 404 redirect secondary domain , hiding of .php extension of url. read in question problem absolute paths - tried both absolute , relative in error documents redirect section.
yes, if both domains pointed different directories in server configuration. apache configuration using .htaccess
file directory (and subdirectories) .htaccess
stored.
i don't know godaddy, hoster provides menu alter path each domain.
you can point both domains same directory. in case need domain detection (e.g. via mod_rewrite) configure each domain separately. wouldn't if 2 distinguished sites.
you can't ignore server settings set. maybe can overwrite them. (which properties can overwritten, depends on global server settings.)
errordocument 404 /my-own-not-found.html # point homepage errordocument 404 /index.php
php .htaccess mod-rewrite redirect
Comments
Post a Comment