.htaccess - In wordpress allow an URL to redirect to a php file outside wordpress -


i run wordpress blog on mydomain.com

i want requests mydomain.com/app rewritten folder "wp-installation/app/app.php"

this current .htaccess file:

<ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] </ifmodule> 

any appreciated.

try this

<ifmodule mod_rewrite.c>  rewriteengine on rewritebase / rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_uri} ^/app/?$ rewriterule ^.* /wp-installation/app/app.php [nc,l] rewriterule . /index.php [l] </ifmodule> 

i added condition check if requested uri string contains "/app" rewritten /wp-installation/app/app.php ,otherwise index.php file.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -