Привет всем. Помогите разобраться пожалуйста.
По поводу вот этого хака: http://expressionengine.com/wiki/Remove_index.php_From_URLs/
Интересует раздел: Removing Template Group and index.php from URL
index.php и название шаблона убрал, но в постраничной навигации название шаблона не убралось.
Полагаю в тексте, который ниже написанно, как это сделать. Но я ничего не понял, так как плохо знаю английский...
Помогите разобраться пожалуйста.
Caveats (Lovely Word)
Just as with the previous changes there are some issues. One was already taken care of with the second and third lines of the .htaccess file. The other is that any place in your template where you use a tag that includes “path=template_group/template” you will have the template group in the given URL. In most cases this is easily solved by using one of the tags that will use the Path Settings you removed the template_group from (Such as the {comment_url_title_auto_path} tag. In other cases you will be able to use “path=template” instead of “path=template_group/template”. You may find a few cases where for some reason or other this does not work. And in those cases you can remove the template group using Lodewijk’s plugin.
The final issue is again the Pagination links. This time the Template Group is placed in the URL as well. To remove it use Lodewijk’s plugin like this:
{exp:replace find=“template_group/index.php/”}{pagination_links}{/exp:replace}
In the Archive pages (or any other page that does pagination on something besides the main page) the problem is compounded. Not only does index.php and Template Group get placed the URL they are put in a spots that don’t make any sense (The pagination link URL’s will look something like this: http://www.yourdomain.com/index.php/template/template_group/). Because of the way it is placed you need to use a combination of Lodewijk’s plugin and the Replace String plugin by Sacred Smile. Put index.php into the Replace String Plugin’s array and used Lodewijk’s plugin to remove the Template Group. This looked something like this in the template:
{exp:replace find=“template_group/”}{exp:replacestring}{pagination_links}{/exp:replacestring}{/exp:replace}
The latest version of the Lodewijk’s Find and Replace plugin supports multiple replacing, so the above result can also be achieved like this:
{exp:replace find=“index.php/|template_group/” multiple=“yes”}{pagination_links}{/exp:replace}
There is a potential performance hit from all of the added .htaccess rules as well as the added plugin usage. In my case the performance hit was unnoticeable. Your milage may vary.
Или может кто переведет на русский эту страничку: http://expressionengine.com/wiki/Remove_index.php_From_URLs/