Dear All,
I have a small issue and I suspect the htacass file which has been modified for YAMS
From the manager interface, I went to "Tool -> Configuration" and then
I went down to "Status du site" (Web site status" and "Page site indisponible" (unavailable web page).
For the first, I selected (Offline)
And on the second, I inofrmed the id of the page, to be redirected, while the web site is ofline.
The id of my page is : 161.
I also set up the page 151 to be the page to be redirected while a page does not exist
I also have YAMS. YAMS works fine.
But my issue: I which that when the web page is offline, the visitor are redirected to
http://www.website.ch/old/ (is the old web site)
For that I create a document (which contain the id 161) and I inserted that code:
<script type="text/javascript">// <![CDATA[
document.location.href="/old/"
// ]]></script>
Then I would like when I enter "www.mywebsite.ch/" it redirect to the page with the id 161, and that page will redirect toe www.mywebsite.ch/old
But has I have YAMS, and when I enter "www.mywebsite.ch", it first redirect to "www.mywebsite.ch/fr/index.php?id=1" instead of the "www.mywebsite.ch/index.php?id=161" or "www.mywebsite.ch/fr/index.php?id=161"
Do you have a idea why it is not redirect to the page id 161?
Many thank for your help
Here is my htaccess file
# For full documentation and other suggested options, please see
# http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
# including for unexpected logouts in multi-server/cloud environments
# and especially for the first three commented out rules
#php_flag register_globals Off
#AddDefaultCharset utf-8
#php_value date.timezone Europe/Moscow
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
#RewriteRule (.*) http://www.example.com/$1 [R=301,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets|old) - [L]
# For Friendly URLs
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1&yams_lang=en [L,QSA]
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteRule ^fr/(.*)$ index.php?q=$1&yams_lang=fr [L,QSA]
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Reduce server overhead by enabling output compression if supported.
#php_flag zlib.output_compression On
#php_value zlib.output_compression_level 5