Hi all,
I have problem with settings of my Contao instance respectively with referer links in backend. My Contao instance is installed in subdirectory (representing domain of 3rd level).
My domain: http:\\www.domain.com is in directory \www\
My subdomain: http:\\lukas.domain.com is in directory \www\subdom\lukas\
All links in backend are directing e.i.: http://lukas.domain.com/subdom/lukas/contao/main.php?...
I need to setup links to: http://lukas.domain.com/contao/main.php?... (withou subdom/lukas)
I have in root of my web (\www\) following .htaccess file content:
Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^domains/
RewriteCond %{REQUEST_URI} !^/domains/
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$
RewriteCond %{DOCUMENT_ROOT}/domains/%2 -d
RewriteRule (.*) domains/%2/$1 [DPI]
RewriteCond %{REQUEST_URI} !^subdom/
RewriteCond %{REQUEST_URI} !^/subdom/
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)\.([^\.]*)\.([^\.]*)$
RewriteCond %{DOCUMENT_ROOT}/subdom/%2 -d
RewriteRule (.*) subdom/%2/$1 [DPI]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^domains/[^/]+/(.+[^/])$ /$1/ [R]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^subdom/[^/]+/(.+[^/])$ /$1/ [R]
I need to resolve this problem due wrong refering page in backend. When I am clicking on Save and go back or Go back backend will redirect my to wrong link (non existing) and default page is shown.
Can you anybody help my what is wrong set on my hosting/.htaccess file?
Thanks Lukas
Bookmarks