0

If you want redirect two separate domains to the same subfolder using .htaccess, you can use the code below by changing domains and folders to match your situation.

<IfModule mod_rewrite.c>

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

# Redirect PuistoSahlynSM.fi

RewriteCond %{HTTP_HOST} ^(www\.)?puistosahlynsm\.fi
RewriteCond %{REQUEST_URI} !puisto/
RewriteRule ^(.*)$ puisto/$1 [L]

# Redirect PuistoSählynSM.fi

RewriteCond %{HTTP_HOST} ^(www\.)?xn--puistoshlynsm-hfb\.fi
RewriteCond %{REQUEST_URI} !puisto/
RewriteRule ^(.*)$ puisto/$1 [L]


</IfModule>
4

1 に答える 1

1

国際化ドメイン名のPunycode名を見つける必要があります。

国際化ドメイン名に関するウィキペディアの記事

WP記事のIDNAコンバーター

于 2012-05-31T12:49:41.907 に答える