php - .htaccess does not work -


i made little website on localhost, , worked fine.

but after tried upload on server doesn't work anymore.

this .htacces:

options -indexes rewriteengine on  rewritebase /www/ rewritecond %{request_uri} !^/+(admin|images)/? rewritecond %{request_uri} !(\..{2,4})$ rewriterule ^(.*)$    index.php?url=$1 [l] 

(www , index.php working (if change ww says, couldn't find folder works guess))

this index.php:

include_once 'engine/urlswitch.php'; define('url', '(url)');   //the url of server - working define('website_name', 'money/'); include_once 'engine/switch.php'; 

urlswitch.php:

$arr_url = explode('/', (isset($_get['url']) ? $_get['url'] : '')); $count = 0; foreach ($arr_url $slot) $argument[$count++] = $slot; 

switch.php:

if(isset($urlerr))     echo '<meta http-equiv="refresh" content="0; '.url.website_name.lang.urlgame.'start/">'; 

if go on website redirects me want, following error message:

not found  requested url /money/en/u/start/ not found on server. 

if change const url localhost , try on local server works fine.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -