.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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -