Jump to content

alter36

Newbie
  • Posts

    2
  • Joined

  • Last visited

alter36's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. Спасибо, получилось.
  2. Здравствуйте. Пытаюсь поставить 301 редирект с адреса /s/page.html на .page.html, но , как я понял, из за RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] на выходе получается адрес такой: /page.html/q=s/page.html. Редирект задаю как Redirect 301 /s/page.html http://site.ru/page.html в конце содержимого файла. Как можно исправить? Сайт на modx, .htaccess такой: Options +FollowSymlinks RewriteEngine On RewriteBase / # Fix Apache internal dummy connections from breaking [(site_url)] cache RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC] RewriteRule .* - [F,L] # Exclude /assets and /manager directories and images from rewrite rules RewriteRule ^(manager|assets)/*$ - [L] RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L] # For Friendly URLs RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy