.htaccess - Apache2 RewriteRule on Subdomain for FCGI Script -


i have fcgi-script on main domain:
fcgi-bin/app.fcgi

this accessible this:
https://example.com/fcgi-bin/app.fcgi

because url doesn't pretty, use different path:
https://example.com/app

so write following line .htaccess:

rewriterule ^app/(.*)$ /fcgi-bin/app.fcgi/$1 [qsa,l] 

this works pretty well! want use different subdomain:
subdomain.example.com/

what have write .htaccess?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -