Welcome Guest, Not a member yet? Register   Sign In
will mod_rewrite work with temp urls???
#6

[eluser]charlie spider[/eluser]
so i deleted everything off of the new server then uploaded a fresh copy of CodeIgniter_1.6.3, configured database.php, and in config.php set:
Code:
$config['base_url'] = "http://123.45.67.89/~dirname/";
// temp url until DNS settings are changed to point at the new server

with no htaccess file.

the default system/application/views/welcome_message.php message came up properly.
everything working as expected.

then i went back into config.php and set:
Code:
$config['index_page'] = "";

then uploaded this htaccess file :
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|includes|javascript|style|uploads|favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]

what happened next ???

404 Not Found

if i manually add index.php to the url then it of course works.



Now, since the temp url i have to use to access the server has a tilde in it like such:
http://123.45.67.89/~dirname/
would CI be filtering this out when it processes:
Code:
$config['base_url'] = "http://123.45.67.89/~dirname/";
???????????????

or is the fact that the DNS hasn't yet been changed over, somehow interfering with the htaccess file ????


Messages In This Thread
will mod_rewrite work with temp urls??? - by El Forum - 09-29-2008, 10:27 PM
will mod_rewrite work with temp urls??? - by El Forum - 09-30-2008, 06:44 AM
will mod_rewrite work with temp urls??? - by El Forum - 09-30-2008, 08:25 AM
will mod_rewrite work with temp urls??? - by El Forum - 09-30-2008, 09:04 AM
will mod_rewrite work with temp urls??? - by El Forum - 09-30-2008, 05:36 PM
will mod_rewrite work with temp urls??? - by El Forum - 10-01-2008, 04:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB