Re: [Bulk] Re: [users@httpd] rewrite simple php under a sub url

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

 





On 09/03/16 23:29, Sven Seeberg wrote:
Ah sorry, I think I missunderstood your question.
possibly

mod_rewrite only changes the "appearance" of the URL for the Browser /
user. This PHP programm still sees the original URL.

Your problem does not seem related to Apache but to the file paths on
your server. Maybe you could work around it with symlinks?
what I thought, what I hoped would be possible is for apache to do some real-time, in-flight url mangling so the app (silly code which seems fine only under root /), while being served from under - /phpapp - would think it's all good and is under /

Am 10.03.2016 um 00:17 schrieb lejeczek:

On 09/03/16 22:12, Sven Seeberg wrote:
Hi there,

you can either just move the DocumentRoot to a directory which contains
the folder phpapp with all the PHP files in it.

Or create an .htaccess file / edit your VirtualHost and add the
following line:
RewriteRule ^phpapp/(.*)$ $1
nope, having looked at some error logs I see (with above rewrite) app
still somewhere uses /phpapp subdir.

Warning: include(path/phpapp/index-full.php): failed to open stream:
No such file or directory in /var/www/devs/phpapp/templates/full.php
on line 3
thanks for suggested search query.
(http://lmgtfy.com/?q=mod_rewrite+subdirectory+to+root)

Cheers

Am 09.03.2016 um 23:05 schrieb lejeczek:
hi everybody
ough... this might sound silly what I'm hoping to achieve, well..
I have a php app that I don't know the code of but the app seems to
only work under top url, eg: www.theapp.net but it has to be served
from www.theapp.net/phpapp
I fiddling with rewrites but not being an expert I thought I'd ask if
it's even possible?

many thanks
L.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





---------------------------------------------------------------------
To unsubscribe, e-mail: users-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