411161 wrote:
>
> My application's url is something like this:
> http://localhost/zend/AppName
>
> We use Oracle's Policy manager for our single sign-on environment. If i go
> to the url above in my preDispatch method, it checks to see whether a
> session is set. If it is not, I forward it to the single sign-on page
> which passes it though some additional code which gets me back to my
> application, but now using a url like this:
> http://signle-sign-on.com/VCP/zend/AppName. When using this policy
> manager, this url (http://signle-sign-on.com/VCP) really just translates
> into this one:
> http://localhost/zend/
>
> So for each one I just have to add the AppName at the end.
>
> Here is my issue:
> When I use the view url helper now, it make the url look like this:
> (http://signle-sign-on.com/zend/AppName
> This url does not work because it leaves off the VCP
>
> I was thinking I could possibly change this line of the .htaccess:
> RewriteBase /VCP/zend/
>
> Current .htacess
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} -s [OR]
> RewriteCond %{REQUEST_FILENAME} -l [OR]
> RewriteCond %{REQUEST_FILENAME} -d
> RewriteBase /zend/
> RewriteRule ^.*$ - [NC,L]
> RewriteRule ^.*$ index.php [NC,L]
>
> The only problem with that is hat http://localhost/zend/AppName will not
> not work at all. I know my last result is to have it where I only access
> the site this way:
> http://signle-sign-on.com/VCP/AppName but I was hoping for a happy medium.
>
>
Ok, I have a little more sense of this now. Here is what I want to do:
For all urls that hit the .htaccess file I want them to still use my
index.php but via one particular url. So if I go in like this
(http://localhost/zend/AppName), it will still forward (or rewrite) it like
this: http://signle-sign-on.com/VCP/AppName
--
View this message in context:
http://www.nabble.com/.htaccess---%28view-helper-%24this-%3Eurl%29-question-tp23175477p23175813.html
Sent from the Zend Framework mailing list archive at Nabble.com.