.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

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -