Watch
1
0
Fork
You've already forked arc
0
forked from hesabix/arc
arc/telegram_proxy/.htaccess
2026-04-14 19:34:55 +03:30

28 lines
1,009 B
ApacheConf
Executable file

# تنظیمات پروکسی تلگرام برای cPanel
# این فایل باید در root domain شما قرار بگیرد (همان جایی که index.php است)
RewriteEngine On
# هدایت مسیر /telegram/webhook به index.php
RewriteCond %{REQUEST_URI} ^/telegram/webhook$ [NC]
RewriteCond %{REQUEST_METHOD} POST [NC]
RewriteRule ^(.*)$ index.php [QSA,L]
# هدایت مسیر /telegram/send به index.php
RewriteCond %{REQUEST_URI} ^/telegram/send$ [NC]
RewriteCond %{REQUEST_METHOD} POST [NC]
RewriteRule ^(.*)$ index.php [QSA,L]
# هدایت مسیر /health به index.php
RewriteCond %{REQUEST_URI} ^/health$ [NC]
RewriteCond %{REQUEST_METHOD} GET [NC]
RewriteRule ^(.*)$ index.php [QSA,L]
# هدایت مسیر /telegram/webhook/status به index.php
RewriteCond %{REQUEST_URI} ^/telegram/webhook/status$ [NC]
RewriteCond %{REQUEST_METHOD} GET [NC]
RewriteRule ^(.*)$ index.php [QSA,L]
# اطمینان از اینکه index.php در دسترس است
DirectoryIndex index.php