Add .htaccess Redirect with RewriteCond (without changing URL)
For now I can use Frame Redirect (URL stays without Params) or directly redirect 301 or 302 to the Page. The coolest way to redirect for me is use htaccess RewriteCond, so Domain stays the same but accepts Params.
I need the possibility to set this via API.
Like this, but automatically in background:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPHOST} ^(www.)?example.com$ [NC]
RewriteRule ^ https://example-other-server.com%{REQUESTURI} [L,NE,P]
1
vote
Stefan
shared this idea
The setting can already be created in an .htaccess file. The feature request did not become popular, we must decline it.
-- PD