L
L
Lici2013-12-19 23:17:19
CMS
Lici, 2013-12-19 23:17:19

Problem with 301 redirect in Simpla CMS double two?

The prehistory is described here: The problem with 301 redirects
Briefly: when prescribing Redirect 301 /oldpage www.site.ru/newpage, it throws at:
www.site.ru/newpage?module=ProductView&product_url...
which is not good and does not work.
Then the problem was solved for urls like product_12345.html
Now you need to register a redirect for pages:
/products/svetodiodnyj-ulichnyj-svetilnik-1
/products/svetodiodnyj-ulichnyj-svetilnik-2
/products/svetodiodnyj-prozhektor-3
and, it seems, that, due to the peculiarities of the htacces syntax, it is impossible to make a rewrite rule of this kind:
RewriteRule ^products/svetodiodnyj- 301redirects.php [L,QSA]
Can you tell me how to correctly specify redirects in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Svirschevskiy, 2013-12-19
@rezzet

I don’t understand what your problem is, similar redirects work fine for me. Try writing right after RewriteEngine on
RewriteRule ^products/svetodiodnyj-ulichnyj-svetilnik-1$ /products/new-product [R=301,nc]

V
vapmaster, 2013-12-20
@vapmaster

First, show your .htaccess in full.
Secondly, your problem may be that the source address is modified by the following RewriteRule rules.
Excellent article on the topic: habrahabr.ru/company/sprinthost/blog/129560

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question