• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mod_rewrite index.php

#1
[eluser]frizbee[/eluser]
Hey everyone,

i have problem with mod_rewrite on server. On local server (MAMP) work everything fine.

problem is, when i type http://domainname.com it shows index.html with server info ( i deleted this file) but if i add http://domainname.com/blog/ it works fine.

can anyone tell me where i have to look in code?

my settings:
Code:
$config['index_page'] = '';
$config['base_url']    = 'http://domainname.com/';
$config['uri_protocol']    = 'AUTO';

i use this settings:
Code:
#RewriteEngine on
#RewriteCond $1 !^(index\.php|images|css|robots\.txt)
#RewriteRule ^(.*)$ /index.php/$1 [L]
<IfModule mod_rewrite.c>
  RewriteEngine On  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
  ErrorDocument 404 /index.php
</IfModule>


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.