Re: Preserving URL after redirect?
| From: | Ray Hauge | Date: | Wed, 05 Mar 2008 18:19:59 +0000 |
| Subject: | Re: Preserving URL after redirect? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271041@lists.php.net to get a copy of this message | ||
Richard Heyes wrote:
You might also be able to get this to work by changing the include_path and creating a special "loader" script in their folder. define('INCLUDE_PATH', '<YOUR PATH HERE>'); ini_set("include_path", INCLUDE_PATH); That way the application includes would still work if you didn't specify absolute paths... I have a few scripts that use the include_path, and they look something like: <?php require_once("../../set_include_path.php"); require_once("includes/utils/format.php"); require_once("includes/utils/ui.php"); //etc. ?> That way I just have the initial call to set the include path, and I don't have to worry about it anymore. -- Ray Hauge www.primateapplications.comSo, my question is how would I do that, and I strongly suspect if it's possible at all an .htaccess file with the proper entries would be the way to do it, not using PHP code to redirect as I am now. Is this the case?You would need to use mod_rewrite.