Добрый день.
Раньше был сайт на WP, урлы были без чпу, site.ru/?cat=1 site.ru/?p=149
перенес на modx, а как сделать 301 редирект ни как не пойму, пробовал плагин RedirectMap 1.0, но для его работы необходимо событие OnPageNotFound, а для ссылок вида оно не срабатывает, при открытии просто перекидывает на главную.
так же пробовал .htaccess прописать
RewriteBase /
RewriteRule ^(.*)?cat=1$ new.html [R=301,NC,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
так же не срабататывает.
Какие еще варианты можно попробовать?
-
☆ A M B ☆
- 428 Posts
RewriteBase /
#........
Options +FollowSymlinks
RewriteRule ^(.*)?cat=1$ /index.php?q=new.html&cat=$1 [N]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Valentin Rasulov - Industrial design (Hobbies - Web Development)
Development not standard projects on CMF MODx Revolution.
Small sample of extensions
К сожалению не работает.
[ed. note: sangrishin last edited this post 14 years, 7 months ago.]
-
☆ A M B ☆
- 428 Posts
в скайп artdevue или в аську 605460225 стукните. Я посмотрю.
Valentin Rasulov - Industrial design (Hobbies - Web Development)
Development not standard projects on CMF MODx Revolution.
Small sample of extensions
Пытаюсь достучаться аське второй день, с номера 320161491
-
☆ A M B ☆
- 428 Posts
Valentin Rasulov - Industrial design (Hobbies - Web Development)
Development not standard projects on CMF MODx Revolution.
Small sample of extensions