Closed crtest closed 10 years ago
Here is my .htacess :
Options +FollowSymlinks
RewriteEngine on
# Allow access to assets folder from plugins folders
RewriteRule ^app/plugins/(.+)/assets - [L]
# forbid access to files and folders under app
RewriteRule ^app/.*$ - [L,F]
# rewrite to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php?action=$1 [L,QSA]
RewriteRule ^(.*)$ index.php?action=$1 [L,QSA]
I don't understand where is the error ?
what version of Atomik are you using?
I seem to remember of a bug related to that in an older version but that was fixed.
C'est la version 2.2.2
try replacing line 546 by:
$baseUrl = isset($_GET[$trigger]) ? substr($redirectUrl, 0, -strlen($_GET[$trigger])) : $redirectUrl;
self::set('atomik/base_url', $baseUrl);
I have this :
Parse error: syntax error, unexpected ''/' (T_ENCAPSED_AND_WHITESPACE) in /homepages/38/d435876205/htdocs/crediaprod/index.php on line 539
Hello,
i have this error at 1and1 host rpovider :
500 - Exception An error has occured! An error of type ErrorException was caught at line 547 in file /homepages/38/d435876205/htdocs/xxxxxxxxxx/index.php
Undefined index: action 540 541 // retreives the base url 542 if (self::get('atomik/base_url', null) === null) { 543 if (self::get('atomik/url_rewriting') && (isset($_SERVER['REDIRECT_URL']) || isset($_SERVER['REDIRECT_URI']))) { 544 // finds the base url from the redirected url 545 $redirectUrl = isset($_SERVER['REDIRECT_URL']) ? $_SERVER['REDIRECT_URL'] : $_SERVER['REDIRECT_URI']; 546 self::set('atomik/base_url', substr($redirectUrl, 0, -strlen($_GET[$trigger]))); 547 } else { 548 // finds the base url from the script name 549 self::set('atomik/base_url', rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\') . '/'); 550 } 551 } 552 553 } else { Stack:
0 /homepages/38/d435876205/htdocs/xxx/index.php(547): Atomik::_errorHandler(NULL)
1 /homepages/38/d435876205/htdocs/xxx/index.php(478): Atomik::dispatch()
2 /homepages/38/d435876205/htdocs/xxx/index.php(274): Atomik::run()
3 {main}
Thanks for the help.