Re: Help with ReriteBase

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When you send a mail to a forum such as this, please turn off your smart html compose features (send plain text only). Otherwise the result is very difficult to read, specially if there are URLs in it.


Anthony Smith wrote:
My main question is can you have some kind of if logic in the .htaccess
file where if the url is:

http://single-signon <http://single-signon/>  the .htaccess would have
this line RewriteBase  /VCP/zend/

and if the url is http://localhost <http://localhost/>  (ar really
anything else) the .htaccess would have this line RewriteBase  //zend/

Both full urls that I am using will both go to the directory where this
.htaccess file is. Read further if you need to understand what I am trying to do.
I have an application that for secrity reasons has two ways of accessing
it. However, one way really only forwards you to the other.

My url to access my app is something like this: http://localhost/zend/MyApp

But the application will forward you to the  external security page if
it finds you are not logged in (via php session) After you get logged in
you will now access the same application via a url like this http://single-signon/VCP/zendMyApp
Undet he covers, http://single-signon/VCP is a url that really just
translates to http://localhost <http://localhost/>  that is not
controlled by me, but another group. This works with the current
.htaccess below.

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]

Anthony Smith
Senior Strategic Sales Analyst

Sales Incentive Info Analytics
901-434-4696

"I will make every FedEx experience outstanding."



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux