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
Last revision Both sides next revision
ru:how_to:website_settings [2013/09/24 08:29]
Arkady [Fancy (Pretty/SEO) URLs]
ru:how_to:website_settings [2013/09/24 08:41]
Arkady [Настройка ЧПУ (настройка структуры URL сайта)]
Line 21: Line 21:
    
  
-==== Custom Permalink Structure ​====+==== Настройка ЧПУ (настройка структуры URL сайта) ​====
  
 Create custom permalinks via the **Settings** tab in your GetSimple installation. Permalinks help define the URL structure of your site. If you put a value in the **Custom Permalink Structure** input box, your **FancyURL** setting may be overridden by the string you put in. Create custom permalinks via the **Settings** tab in your GetSimple installation. Permalinks help define the URL structure of your site. If you put a value in the **Custom Permalink Structure** input box, your **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.txt · Last modified: 2013/09/24 08:41 by Arkady