Jump to content

Zend Rewrite Base?


atholon

Recommended Posts

I've just started looking into Zend Framework and glancing at the quickstart on their website I saw they used a virtual host to redirect to the public directory. What are you supposed to do if you only have access to .htaccess on a shared host?

 

I don't know much about mod_rewrite or any of that. I just want to send the traffic to that folder.

Link to comment
https://forums.phpfreaks.com/topic/243318-zend-rewrite-base/
Share on other sites

It's not exactly clear what you want to do, your .htaccess file needs to be in your public directory. For Zend, you need to direct all traffic (excepting images and css) to your index.php file.

 

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

Link to comment
https://forums.phpfreaks.com/topic/243318-zend-rewrite-base/#findComment-1249636
Share on other sites

Let me explain it better sometimes I am bad at making assumptions.

 

I have a project I just created. I am not sure if I am going to have access to httpd config to do the virtual host stuff that they recommend in Zend's quickstart so I am trying to figure out how to do it with .htaccess.

 

My project resides in a directory like /www/Leadership, I want to send everything to Zend's public folder in my project when they hit the Leadership directory. Maybe I am going about that the wrong way?

Link to comment
https://forums.phpfreaks.com/topic/243318-zend-rewrite-base/#findComment-1249638
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.