Как статически ".com" контент в HTML на .org версии сайта - PullRequest
0 голосов
/ 13 июня 2018

Я пытаюсь манипулировать содержимым HTML-страницы.

Сценарий 1:

Когда я изменяю имя домена, чтобы оно заканчивалось на .com,URL в моем контенте автоматически изменится на www.example.com.Это пример dotCOM

Сценарий 2:

То же, что и для доменного имени, оканчивающегося на .org,URL в моем контенте автоматически изменится на www.example.org.Это пример dotORG

Мой ожидаемый результат

Если я введу доменное имя, оканчивающееся на .org onURL, я хочу, чтобы содержимое www.example.com было статическим .com.Вот так Вывод .

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8" />
    <title>Sample Title</title>
    <link href="/css/design.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <h3>Lorem ipsum</h3>
    <ol>
        <li>www.babyshark.com is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's 
        standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type 
        specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, 
        remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets 
        containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus 
        PageMaker including versions of Lorem Ipsum.</li>
    </ol>
</body>
</html>

1 Ответ

0 голосов
/ 13 июня 2018

ниже программа должна быть вам в полной мере полезнаатрибуты id

...