Welcome Guest, Not a member yet? Register   Sign In
redirect a PHP suffix to a controller using Apache mod_rewrite / RewriteRule
#4

[eluser]tmcallister[/eluser]
[quote author="tmcallister" date="1253695645"]At the moment, it looks like this will work:

Code:
RewriteRule ^post_here.php$ http://mydomain.com/receive/

I'll try posting for real and see...[/quote]

Well....

The code above redirects, but not in a usable manner. It seems this is an an external redirection, changing the URL, and doesn't work for my needs.

I need to do an internal rewrite, so the url stays the same. For example, with the following rule, the URL "start.php" will display start.php in the URL address, but display the result of "end.php"

Code:
RewriteRule ^start.php$ end.php

How can I achieve the same thing when redirecting a "*.php" file to a CI controller?

thanks


Messages In This Thread
redirect a PHP suffix to a controller using Apache mod_rewrite / RewriteRule - by El Forum - 09-22-2009, 10:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB