Answer the question
In order to leave comments, you need to log in
How to run a Java application through NodeJS?
Hello.
The application has a Start button that needs to be tied to the launch of the .jar file.
How to do it?
Answer the question
In order to leave comments, you need to log in
everything is simple in your logic there are a couple of errors
1. initialization of the rewrite mod is not needed every time it is enough to do it 1 time
2. the robot does not need to exclude this completely unnecessary.
3. .htaccess is read sequentially from top to bottom and the application goes in a circle until the links completely stop changing, as a result ^(.*)$ will always change it.
well, 4
RewriteCond acts on the only steering wheel after itself, and does not apply to the rest.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.|)(.+)\.rukartina\.ru$ [NC]
RewriteRule ^(.*)$ https://%2.rakovgallery.ru/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)uralkartina\.ru$ [NC]
RewriteRule ^(.*)$ https://ekb.rakovgallery.ru/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^category/pejzazh/(.*)$ https://rakovgallery.ru/catalog/genre/peyzazh/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^category/gorodskoj-pejzazh/(.*)$ https://rakovgallery.ru/catalog/genre/gorodskoy-peyzazh/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^category/morskoj_pejzazh/(.*)$ https://rakovgallery.ru/catalog/genre/morskoy-peyzazh/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^category/abstrakciya/(.*)$ https://rakovgallery.ru/catalog/genre/abstrakciya/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^category/natyurmort/(.*)$ https://rakovgallery.ru/catalog/genre/natyurmort/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^category/syuzhetnaya-zhivopis/(.*)$ https://rakovgallery.ru/catalog/genre/syuzhetnaya-zhivopis/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^uslugi/portrety_na_zakaz/(.*)$ https://rakovgallery.ru/services/portrety-na-zakaz/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/gusel-nikov-evgenij-vasil-evich/(.*)$ https://rakovgallery.ru/artist/evgeniy-guselnikov/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/balahonov-dmitrij/(.*)$ https://rakovgallery.ru/artist/balahonov-dmitriy/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/krupp-stanislav/(.*)$ https://rakovgallery.ru/artist/stanislav-krupp/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/belaya-agata/(.*)$ https://rakovgallery.ru/artist/agata-belaya/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/saidov-aleksandr/(.*)$ https://rakovgallery.ru/artist/aleksandr-saidov/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/hohrin-il-ya-nikolaevich/(.*)$ https://rakovgallery.ru/artist/ilya-hohrin/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/pervushin-yurij/(.*)$ https://rakovgallery.ru/artist/pervushin-yuriy/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/shishkin-valerij/(.*)$ https://rakovgallery.ru/artist/valeriy-shishkin/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/marinova-anna/(.*)$ https://rakovgallery.ru/artist/anna-marinova/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/kushakov-alisher/(.*)$ https://rakovgallery.ru/artist/alisher-kushakov/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/suvorova-ol-ga/(.*)$ https://rakovgallery.ru/artist/olga-suvorova/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/pokidyshev_pavel_vasil_evich/(.*)$ https://rakovgallery.ru/artist/pavel-pokidyshev/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/terehov-evgenij-aleksandrovich/(.*)$ https://rakovgallery.ru/artist/evgeniy-terehov/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/reznichenko-nikolaj-grigor-evich/(.*)$ https://rakovgallery.ru/artist/nikolay-reznichenko/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/lipatova-alla/(.*)$ https://rakovgallery.ru/artist/lipatova-alla/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/korolenkov-vyacheslav-veniaminovich/(.*)$ https://rakovgallery.ru/artist/vyacheslav-korolenko/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/loskutov-evgenij/(.*)$ https://rakovgallery.ru/artist/loskutov-evgeniy/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/sidorova-zhanna/(.*)$ https://rakovgallery.ru/artist/sidorova-zhanna/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^searchworks/(.*)$ https://rakovgallery.ru/catalog/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^newworks/(.*)$ https://rakovgallery.ru/catalog/new/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^hudozhniki/(.*)$ https://rakovgallery.ru/artist/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^uslugi/(.*)$ https://rakovgallery.ru/services/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
RewriteRule ^(.*)$ https://rakovgallery.ru/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.|)rukartina\.ru$ [NC]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question