The tip of setting the MODx subdirectory worked like a charm on localhost.
However, but I cannot remmeber how to adapt it to a remote server.
In the address below, the site that I'm trying to configure is the "in-development-site":
http://www.
main-site.ext/projects/
in-development-site.ext/fr/index.php?id=1
I tried to set the MODx subdirectory to "/projets/in-development-site.ext" it was not recorded. (Solved by public write permissions to yams/modules/yams.config.inc.php)
Edited:
Inside the "main-site.ext" folder, the .htaccess is:
SetEnv PHP_VER 5.3
Options +FollowSymlinks
# Friendly URLs
RewriteEngine On
RewriteBase /projects/in-development-site.ext/
#AllowOverride all
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^fr/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
When I try to preview some page, the redirection is very slow as it takes several seconds and writes "0" instead of the document id:
http://www.
main-site.ext/projects/
in-development-site.ext/fr/index.php?id=
0
Any idea what I'm missing?
[ed. note: Jul last edited this post 9 years, 4 months ago.]