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

[eluser]skunkbad[/eluser]
[quote author="Yours3lf" date="1272413990"]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--");
}
?>
[/quote]

This seems really cheesy. You'd probably have the best success with rewrite help on a windows server forum. Actually.... and I don't mean to steer anyone away from this forum... but you might ask about getting the rewrite working over at phpfreaks.com. They even have a Microsoft IIS board


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