2017-12-05 52 views
0

먼저이 모든 것을 통해 스택 오버플로없이 수행 할 수있는 작업이 무엇인지 모르기 때문에 감사합니다.하위 도메인의 별칭을 기본 도메인 이름으로 표시

여기 있습니다. 나는 하위 도메인 comeovercome.livewithauthenticity.com

에 워드 프레스 웹 사이트를 개발하고 나는 URL에 액세스 쉽게

comeovercome.com

하지만 공유 기능과 때를 사용하여 I 설정을 도메인 별칭을 구입 Yoast SEO 플러그인은이 도메인 이름을 주요 도메인으로 사용할 수 없으므로 공유 된 게시물의 사람들은 쉬운 URL 대신 자동으로 긴 실제 URL을 얻습니다.

웹 사이트를이 하위 도메인에 보관할 수 있지만 항상 멋진 URL로 가리 키려면 어떻게해야합니까?

제 질문에 대한 답변을 드리겠습니다. 미리 감사드립니다! 변경 아무것도하시기 바랍니다 백업 백업 백업 전에

+0

귀하의 웹 사이트입니다

# Do not change this line. RewriteEngine on # Change example.com to be your main domain. RewriteCond %{HTTP_HOST} ^(www.)?example.com$ # Change 'subdirectory' to be the directory you will use for your main domain. RewriteCond %{REQUEST_URI} !^/subdirectory/ # Don't change the following two lines. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Change 'subdirectory' to be the directory you will use for your main domain. RewriteRule ^(.*)$ /subdirectory/$1 # Change example.com to be your main domain again. # Change 'subdirectory' to be the directory you will use for your main domain # followed by/then the main file for your site, index.php, index.html, etc. RewriteCond %{HTTP_HOST} ^(www.)?example.com$ RewriteRule ^(/)?$ subdirectory/index.html [L] 

감사를 리디렉션 하위 디렉토리 도메인 이름

htaccess로 주요 도메인에 따라 변경 하위 디렉토리에 파일? –

+0

예, 모든 파일은 하위 디렉토리 –

+0

에 있습니다. httacces 파일 코드를 여기에 표시 할 수 있습니까? –

답변

0

는 #tag의 의견을 읽고 다음