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

2016-03-09 Thread Sven Seeberg
Am 10.03.2016 um 00:43 schrieb Sven Seeberg: > Am 10.03.2016 um 00:40 schrieb lejeczek: >> >> 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 progra

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

2016-03-09 Thread Sven Seeberg
Am 10.03.2016 um 00:40 schrieb lejeczek: > > > 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 probl

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

2016-03-09 Thread lejeczek
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

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

2016-03-09 Thread Sven Seeberg
Ah sorry, I think I missunderstood your question. 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 syml

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

2016-03-09 Thread 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 lo

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

2016-03-09 Thread Sven Seeberg
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 (http://lmgtfy.com/?q=mod_rewrite+subdirectory+to+root)

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

2016-03-09 Thread 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 th