User Tools

Site Tools


ru:how_to:website_settings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ru:how_to:website_settings [2013/09/24 08:27]
Arkady [User Profile]
ru:how_to:website_settings [2013/09/24 08:41] (current)
Arkady [Настройка ЧПУ (настройка структуры URL сайта)]
Line 14: Line 14:
  
  
-==== Fancy (Pretty/SEO) URLs ====+==== Fancy (Pretty) URLs или ЧПУ  ​====
  
-GetSimple ​allows you to create better lookingand more SEO friendly URLsIn order for this feature to work, your server needs to have the **mod_rewrite** ​module installed+GetSimple ​позволяет использовать ЧПУ (человекопонятные URL)что положительно отражается на внешнем виде URL страниц и полезно для ​SEO сайтаДля включения этой функции на сервере должен быть установлен и активирован модуль ​**mod_rewrite**. ​
  
-You also have the ability to edit the structure of the URLs by setting a **Custom Permalink Structure**. Certain custom structures need the **mod_rewrite** ​modulebut not all+Система предоставляет возможность редактировать структуру URL страниц сайта путем изменения параметра ​**Настройка ЧПУ**. Некоторые структуры при этом требуют включенный модуль ​**mod_rewrite**, ​некоторые – нет. 
 + 
  
-==== Custom Permalink Structure ​====+==== Настройка ЧПУ (настройка структуры URL сайта) ​====
  
-Create custom permalinks via the **Settings** tab in your GetSimple installation. Permalinks help define the URL structure of your siteIf you put a value in the **Custom Permalink Structure** input boxyour **FancyURL** setting may be overridden by the string you put in.+В GetSimple предусмотрена возможность настройки постоянных ссылок (permalink) сайта сайта путем проставления определенных параметров (или, в терминологии GS, тэгов) ​ в поле ​**Настройки ЧПУ**. Если вы внесли какие-то параметры в поле ​**Настройка ЧПУ**, они могут перекрывать значение настройки ​**Использовать Fancy URLs**. 
  
-The default ​URL structure for **"​FancyURLs"​ ON** is: +Структура ​URL по умолчанию,​ если флажок ​**Использовать Fancy URLs** включен
-''​%parent%/​%slug%/''​+
  
-The default URL structure for **"​FancyURLs"​ OFF** is: +<​code>​%parent%/​%slug%/</​code> ​
-''​index.php?​id=%slug%''​+
  
-=== Syntax ===+Структура URL по умолчанию,​ если флажок **Использовать Fancy URLs** выключен: ​
  
 +<​code>​index.php?​id=%slug%</​code> ​
  
-The two tags to build your custom permalink are ''​%parent%''​ and ''​%slug%''​ +=== Синтаксис ===
-Do not use a beginning slash+
  
-=== Examples ===+Для настройки ЧПУ или структуры URL вашего сайта применяются два тэга: ''​%parent%''​ (родитель) и ''​%slug%''​ (постоянная ссылка). Начальный слэш не используется. ​
  
-Replace ​subdirectory ​with your own virtual directory - //this folder does not need to exist//: +=== Примеры === 
-<​code>​subdirectory/​%parent%/​%slug%/</​code> ​+Замените параметр //subdirectory// ​на свою виртуальную директорию – //эта папка может и не существовать на сайте физически//​. 
 + 
 +<​code>​subdirectory/​%parent%/​%slug%/</​code>​ 
 + 
 +Следующая настройка удаляет строку ''​index.php''​ из URL. Может применяться при выключенных **Fancy URLs**.
  
-Removes the ''​index.php''​ from URL. This can be done without Fancy URL's turned on: 
 <​code>?​id=%slug%</​code>​ <​code>?​id=%slug%</​code>​
  
-=== Adding ​.html, .htm or .php extension to URLs ===+=== Добавление расширения ​.html, .htm or .php к URL === 
 + 
 +Если вы хотите добавить расширения (''​.html'',​ ''​.htm'' ​ или ''​.php''​) к постоянным ссылкам на ваши страницы,​ необходимо отметить флажок **Использовать Fancy URLs**, затем в поле **Настройка ЧПУ** прописать необходимое вам расширение, ​ например ''​.html'',​ следующим образом:​
  
-If you want to add an extension (''​.html'',​ ''​.htm''​ or ''​.php''​) to your website'​s pages, you first need turn on **Use Fancy URLs**, then set the **Custom Permalink Structure** to (example for pages that will end in ''​.html''​):​ 
 <​code>​%slug%.html</​code>​ <​code>​%slug%.html</​code>​
  
-Next, you need to make a small change to your root level ''​.htaccess'' ​file. Change the Rewrite Rule to this:+Затем необходимо изменить главный ​''​.htaccess''​-файл сайта, переписав правило **Rewrite Rule**: 
 <​code>​RewriteRule /?​([A-Za-z0-9_-]+).html$ index.php?​id=$1 [QSA,​L]</​code>​ <​code>​RewriteRule /?​([A-Za-z0-9_-]+).html$ index.php?​id=$1 [QSA,​L]</​code>​
  
-NOTEChange ​''​.html'' ​to ''​.php''​ (or ''​.htm''​) ​in both the Rewrite ​Rule above and the permalink structureif you are using that extension instead.+На заметкуИзмените ​''​.html'' ​на ''​.php''​ (или ​''​.htm''​) ​ в **Rewrite-правиле** и в поле **Настройка ЧПУ**если вам необходимо применить эти расширения 
  
 =====Профиль пользователя===== =====Профиль пользователя=====
ru/how_to/website_settings.1380011220.txt.gz · Last modified: 2013/09/24 08:27 by Arkady