Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter WITHOUT rewrite engine
#7

[eluser]Yours3lf[/eluser]
I've done some search and I got this:

you can pass-by the rewrite engine by calling php's header function and validating $_SERVER variables, so, with this my is working now Smile

for example:

Code:
<?php
if(stristr($_SERVER['REQUEST_URI'], '/some-directory/')){
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.my-website.com/--address from$_SERVER variables--");
}
?>


Messages In This Thread
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-26-2010, 04:37 PM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-26-2010, 04:45 PM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 12:42 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 12:59 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 10:39 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 11:50 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 01:19 PM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-27-2010, 09:33 PM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-28-2010, 03:23 AM
CodeIgniter WITHOUT rewrite engine - by El Forum - 04-28-2010, 11:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB