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