By owntheweb on
This one hurts my head at the moment. I have a test site that I need to push to the live site to test some things, but don't have permission to replace the live site with it yet. I moved everything to a /preview folder on the live site instead. How would I make this work? Can I? I have aliases and such already in place and don't want to change those. Can I create a .htaccess file to work with this?
Thank you MUCHO. :D
Comments
subdomain
You could just use preview.example.com and point the site document root to /preview/ in apache. Can you add a subdomain and point its document root to that folder?
Hey thanks for the tip. I was
Hey thanks for the tip. I was leaning towards that direction, but will not be able to create a subdomain (bummer!). A related article at: http://www.fractalomega.com/node/1 talked about this.
However, the old website has static files like index.htm and such. Could I modify the following somehow to forward traffic from the root dir to the subdir in a masked way?:
RewriteEngine on
RewriteRule ^$ /drupal/ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /drupal/$1 [L]
Or will that work? I'm thinking the [L] needs to be [QSA] or something. Any thoughts?
Thanks again in advance.
Worlds to explore. Worlds to create.
Blog: http://www.christopherstevens.cc/blog
Twitter: http://www.twitter.com/owntheweb
You have already uploaded the
You have already uploaded the drupal site to a subfolder x ...
created a database for it, created a user similar to that on your PC, similar password, similar DB host, probably "localhost", given him ALL privileges via your cpanel, edited the uploaded /sites/default/settings.php to reflect those DB settings & pointed your browser to yoursiteaddress.com/yourdrupalfolder & it does not work??
In many cases that would suffice, but in case it does not, then it would probably be .htaccess issue.
Oh wow. It just works.... I
Oh wow. It just works.... I should have known Drupal would have just done what I wanted without thinking about it. Yep. I place the files in the sub-folder and POW! It works still. :D
Thanks
Worlds to explore. Worlds to create.
Blog: http://www.christopherstevens.cc/blog
Twitter: http://www.twitter.com/owntheweb