tag:blogger.com,1999:blog-865923359735383241.post4886509516598072226..comments2023-10-29T07:27:09.012-06:00Comments on Ccna final exam - java, php, javascript, ios, cshap all in one: Zend and .htaccessUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-865923359735383241.post-79621306342611998902012-06-10T21:14:19.088-06:002012-06-10T21:14:19.088-06:00Most shared hosts I've used still allow you to...Most shared hosts I've used still allow you to upload files outside the web root. For example, <br /><br />/home/{username}/webroot/<br /><br /><br />...you can still upload to /home/{username}/ like:<br /><br />/webroot<br /> index.php<br /> .htaccess<br />/application<br />/config<br /><br /><br />Then in your bootstrap, just replace public with webroot, or if you have ssh access delete the existing webroot and replace it with a symbolic link to the zend public directory, like:<br /><br />rm -f webroot<br />ln -s public webrootUserhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-91758311586022390362012-06-10T21:14:18.134-06:002012-06-10T21:14:18.134-06:00Remember to change your RewriteBase.Remember to change your RewriteBase.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-20206884171536375312012-06-10T21:14:17.364-06:002012-06-10T21:14:17.364-06:00Create zend/index.php containing this code:
<...Create zend/index.php containing this code:<br /><br /><?php include 'public/index.php';<br /><br /><br />Now create zend/.htaccess containing this code:<br /><br />SetEnv APPLICATION_ENV development<br /><br />RewriteEngine On<br />RewriteRule .* index.php<br /><br /><br />Make sure that your images/css/js files are all within zend/public/ and do not remove the zend/public/.htaccess file :)<br /><br />Don't forget that the request's baseUrl doesn't include '/public', so you'll need to add it yourself when you reference public facing files.<br /><br />Regards,<br /><br />Rob...Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.com