Hello, in my project i will need to use
redirect fake pages (SEO url to one page with snippet, wich takes parametrs from url and print custom product page)
sale-product-99.html to index.php?id=35
sale-product-100.html to index.php?id=35
sale-product-101.html to index.php?id=35
How to create diffrerent aliases to one page with snippet?
in .htaccess i'd wrote such line:
^.*sale-product-([0-9]*)\.html$ index.php?id=35 [L]
In system configuration i also need to use friendly url option.
When i try to access to sale-product-99.html modx instead of open index.php?id=35 redirect me to product.html page (product.html is a alias of index.php?id=35), also i notice that first it redirect to index.php?id=35 and then again from index.php?id=35 to alias product.html
Main problem is that i can not specify on which page i can use dynamic url index.php?id=35 and on which use friendly url.
In revo if i try to setup in page parametrs alias to index.php?id=35 it begins to error (cycle redirection).
In modx evo i dont have this problem-because i can access to tha same page as product.html and as index.php?id=35 without redirection to friendly url.
EVO
http://infanta.dp.ua/-categ-44-tovar-817.html
http://infanta.dp.ua/-categ-44-tovar-818.html
it's all normally redirected to index.php?id=63 page
and browser and sarch engenies see this page with custom friendly url.
Sorry for my english. Thanks for any help.
UPD
comment line #100 in core/model/modx/modrequest.class.php
//$this->modx->sendRedirect($url, array('responseCode' => 'HTTP/1.1 301 Moved Permanently'));
it's seems working properly now. any ideas with possible problems this "modification"? security e.t.c
[ed. note: madmaximus85 last edited this post 13 years, 8 months ago.]