apache - Shared Domain multidomain trouble -
i've got in ftp in hosting following configuration:
www/domain2 the www corresponds domain (domain1), , when try access post in wordpress in domain2 url looks this:
domain2.com and if click in post or article:
domain1.com/domain2.com/postexample how can configure mod_rewrite url www.domain2.com/postexamle , never show domain1?
the path put .htaccess www/domain2/.htaccess right?
move .htaccess /www following
rewriteengine on rewritebase / rewritecond %{http_host} ^(www\.)?domain2.com$ [nc] rewritecond %{request_filename} !-d # not dir rewritecond %{request_filename} !-f # not file rewriterule ^(.*)$ /domain2/$1 [l] but, need make sure article links not include domain2 in them. so, can either http://www.domain2.com/some-domain-2-file.php (absolute) or some-domain-2-folder/file.php (relative).
Comments
Post a Comment