httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Seeberg <s...@geeq.de>
Subject Re: [users@httpd] rewrite simple php under a sub url
Date Wed, 09 Mar 2016 22:12:12 GMT
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)

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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>




Mime
View raw message