Hello all,
I have 2 installation of SilverStripe on one domain
installation one is on the root folder
and installation 2 is on /english folder which located inside the root folder
on the root folder my .htaccess is
/////////////////////////////////////////
RewriteEngine On
RewriteRule ^english/.*$ - [PT]
RewriteRule \.js$ - [L]
RewriteRule \.css$ - [L]
RewriteRule \.png$ - [L]
RewriteRule \.jpg$ - [L]
RewriteRule \.gif$ - [L]
RewriteRule \.php$ - [L]
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###
/////////////////////////////
and on my /english folder I have
/////////////////////////////////////////
RewriteEngine On
RewriteRule \.js$ - [L]
RewriteRule \.css$ - [L]
RewriteRule \.png$ - [L]
RewriteRule \.jpg$ - [L]
RewriteRule \.gif$ - [L]
RewriteRule \.php$ - [L]
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###
////////////////////////////////////////
notice that the .htaccess on my root folder has
RewriteRule ^english/.*$ - [PT]
so mod_rewrite would ignore the /english folder.
but still it returns a
"Sorry, it seems you were trying to access a page that doesn't exist.
Please check the spelling of the URL you were trying to access and try again."
also, "http://domain.com/english/?url=/english" appears on my address box
what am I doing wrong here? any suggestion?
thanks