php - Rewrite a secondary domain to a subfolder -
I bought two domains: www.juridischehulponline.nl www.onlinejuridischehulp.nl
and I want to Like to link my hosting subfolder: www.zuidveste.eu/juridisch and new domains to be displayed as new domains. So if I surf on www.juridischehulponline.nl, I would like to see: www.juridischehulponline.nl and not www.zuidveste.eu/juridisch However, if I rewrite the sub-folder and redirect it to the new domain, I get one: "too many redirections" error as it goes to www.juridischehulponline.nl where an .htaccess is found which is available at www.juridsichehulponline Will redirect to .nl
And if I proxy domain, my new domain is being displayed, even though simple blogging systems, such as Katnews, will not work because they have the entire path to www. Zuidveste.e U / juridisch. But due to .htaccess, that part will be rewritten and given the path of www.juridischehulponline.nl/index.php; Which does not exist.
I have removed .htaccess in the juridisch folder, but I do not know how this can be resolved.
Can anyone help me?
Regards,
I will not use the proxy, but improves the .htaccess - Structure: Keep only one .htaccess in your zuidveste.eu root:
Option - Index revertinign on option + follow-up symlinks #redirect non-www to www-domain rewritecond% {HTTP_HOST} ^ juridischehulponline Nl [nc] RewriteRule ^ (. *) $ Http://www.juridischehulponline.nl/$1 [R = 301, L] #redirect www- domain RewriteCond% non-www {HTTP_HOST} onlinejuridischehulp.nl [NC] RewriteRule ^ (. *) $ Http://www.onlinejuridischehulp.nl/$1 [R = 301, L] #redirect www- domain RewriteCond% non-www {HTTP_HOST} zuidveste.eu [NC] Rewr IteRule ^ (. *) $ Http://www.zuidveste.eu/$1 [R = 301, L] Exclude other domains for subfolders, attributes to revoked conduit% {HTTP_HOST} ^ www.juridischehulponline.nl [ NC, or] rewrite code% {HTTP_HOST} ^ ww w.onlinejuridischehulp.nl [NC] RewriteCond% (. *) {} REQUEST_URI! ^ / Juridisch / RewriteRule ^ $ / juridisch / $ 1 [QSA, L] This code 3 redirects the non-www domain for your www-alternative, so visitors will see that they are redirected is done. On the other hand, if they go to 2 .nl -domains, URLs will be written again and users will not be able to see this change in their address bar. Still, take care of duplicate content in search engines. I recommend using a canonical-meta-tag, as explained here:
Comments
Post a Comment