Welcome Guest, Not a member yet? Register   Sign In
Help with .htaccess
#1

[eluser]Buso[/eluser]
I have moved to a new server and I can't make .htaccess work

Im using this one, which used to work fine in my last server:

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt|template|css|images|javascript|\*\.jpg|\*\.gif|\*\.css|\*\.js)
RewriteRule ^(.*)$ index.php/$1 [L]

But now it doesn't seem to work.

My host gave me a temporary url like this (im still wating for my domain nameservers to get updated):

http://12.345.67.890/~something/

That url points to my /www directory, where I placed my CI components:
Code:
/www
  /system
  /css
  .htaccess
  .index.php

If I remove the .htaccess, it works, but i have to write index.php on every url.

But anyway I noticed that the image relative paths from de .css stylesheets weren't working. I had to add "/~something" at the beginning of each relative path. That confuses me since there is no "/~something" directory (it still could be an mod_rewrite alias for /www, but why do I have to write it if it is a relative path and /www is my root?)

Sry for all the newbie questions, but I really am in a hurry =p


Messages In This Thread
Help with .htaccess - by El Forum - 11-07-2009, 12:50 AM
Help with .htaccess - by El Forum - 11-07-2009, 01:49 AM
Help with .htaccess - by El Forum - 11-07-2009, 02:24 AM
Help with .htaccess - by El Forum - 11-07-2009, 04:47 AM
Help with .htaccess - by El Forum - 11-07-2009, 04:55 AM
Help with .htaccess - by El Forum - 11-07-2009, 05:06 AM
Help with .htaccess - by El Forum - 11-07-2009, 05:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB