aisa/public_html/_FromProd/.htaccess

55 lines
1.9 KiB
ApacheConf
Raw Permalink Normal View History

2025-11-26 09:31:54 +00:00
# BEGIN
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
#RewriteCond %{HTTPS} !=on
## This checks to make sure the connection is not already HTTPS
#RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteCond %{REQUEST_URI} ^/($|/)
RewriteRule ^.*$ /cgi-bin/scripts/index.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/calendar($|/)
RewriteRule ^.*$ /cgi-bin/scripts/calendar.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/archive($|/)
RewriteRule ^.*$ /cgi-bin/scripts/archive.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/(.*)-(.*)-(.*)-report($|/)
RewriteRule ^.*$ /cgi-bin/scripts/%1_%2_%3_report.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/(.*)-(.*)-report($|/)
RewriteRule ^.*$ /cgi-bin/scripts/%1_%2_report.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/(.*)-report($|/)
RewriteRule ^.*$ /cgi-bin/scripts/%1_report.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/(.*)-report-test($|/)
RewriteRule ^.*$ /cgi-bin/scripts/%1_report_test.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/(.*)-payments($|/)
RewriteRule ^.*$ /cgi-bin/scripts/%1_payments.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/(.*)-payments-test($|/)
RewriteRule ^.*$ /cgi-bin/scripts/%1_payments_test.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/logout($|/)
RewriteRule ^.*$ /cgi-bin/scripts/logout.pl [NC,L]
RewriteCond %{REQUEST_URI} ^/(list|add|edit|delete|copy|search|filter)-(.*)-(.*)-(.*)($|/)
RewriteRule ^.*$ /cgi-bin/scripts/%2_%3_%4.pl?%1 [NC,L]
RewriteCond %{REQUEST_URI} ^/(list|add|edit|view|delete|copy|search|filter|detailed|summary)-(.*)-(.*)($|/)
RewriteRule ^.*$ /cgi-bin/scripts/%2_%3.pl?%1 [NC,L]
RewriteCond %{REQUEST_URI} ^/(list|add|edit|view|delete|copy|search|filter|accepted|pending|closed|stock|purchased|demo|active|all|main|other|vpu|rental|casual|assign|open|active)-(.*)($|/)
RewriteRule ^.*$ /cgi-bin/scripts/%2.pl?%1 [NC,L]
</IfModule>
# END