Jump to content

change folder location


lancealigiannis

Recommended Posts

hi all

i'm trying to figure out how to change n include a hardcoded folder location with all its sub folders n files too..

 

eg.. fruitstore.com/greenfolder/apples

changed to..

eg.. fruitstore.com/bluefolder/berries

 

there r alot of references to this folder...

so i'd wanna keep the fruitstore.com/greenfolder

n have a php file in there redirecting to the new location..

 

then if ur really good...

a folder on a different domain too..

eg.. fruitshop.com/bluefolder/berries

 

u know how to do this?

or know where to look for it??

 

thnx,

lance.

Edited by lancealigiannis
Link to comment
Share on other sites

using some of them... all i got was a one way trip to a bad "require once" msg or sent to another domain... 

maybe php can include the files from another domain...

but wat about just moving the files around different subdirectories...

any more ideas?

 

basically i'm trying to use the same site framework without 2 different site setups...

Link to comment
Share on other sites

To be clear mod_rewrite has no effect on PHP. It only effects url requests to the server.

 

 

 

 

basically i'm trying to use the same site framework without 2 different site setups...

Sounds to me you'd be better of running your 2 sites under two separate virtual hosts. Virtual hosts allows you to server to host multiple sites from the same server. Each site can have its own domain and document root.

You could then add your framework to a central location on the server and then add it to the include_path

Link to comment
Share on other sites

i c.. i'm using this code below to get a file from a location... n it works great.. but i'm not sure how to implement the get all folder structure however..

include_path=".:/newlocation/folders-n-files"

<?php


/** Absolute path to the config directory. */
if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');


/** Location of your config configuration. */
require_once(ABSPATH . '../config.php');
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.