common_cadline_libraries (CRM hardlock/db/users classes; upstream cadline_web/cadcommonlib), maintenance/ (ARCHLine.XP license backend; upstream cadline_web/maintenance), maintenance2/. Vetted live files (byte-truth); upstream repos in PROVENANCE.md. NOTE: could be git submodules — kept as live files for byte-fidelity. Signed-off-by: LÁZÁR Imre <imre@illusion.hu> Assisted-by: claude-code@claude-opus-4-8
184 lines
11 KiB
ApacheConf
184 lines
11 KiB
ApacheConf
##
|
|
# @package Joomla
|
|
# @copyright Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
|
|
# @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
##
|
|
|
|
##
|
|
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
|
|
#
|
|
# The line just below this section: 'Options +FollowSymLinks' may cause problems
|
|
# with some server configurations. It is required for use of mod_rewrite, but may already
|
|
# be set by your server administrator in a way that dissallows changing it in
|
|
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
|
|
# beginning of line), reload your site in your browser and test your sef url's. If they work,
|
|
# it has been set by your server administrator and you do not need it set here.
|
|
##
|
|
|
|
## Can be commented out if causes errors, see notes above.
|
|
Options +FollowSymLinks
|
|
|
|
## Mod_rewrite in use.
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{HTTP_HOST} ^archlinexp.co.uk$ [OR]
|
|
RewriteCond %{HTTP_HOST} ^www.archlinexp.co.uk$
|
|
rewriterule (.*) http://www.archlinexp.com/ [r=301,nc,l]
|
|
|
|
RewriteCond %{QUERY_STRING} ^menu=tips(.*)&lang=(.*)&version=(.*)&session=(.*)$
|
|
RewriteRule ^index\.php$ /maintenance/tips\.php?lang=%2&version=%3&session=%4 [NC,R=302,L]
|
|
|
|
RewriteCond %{QUERY_STRING} ^menu=activate_90_days_active&lang=(.*)&ser=(.*)&pwd=(.*)$
|
|
RewriteRule ^index\.php$ /maintenance/activate_90_days_active\.php?ser=%2&pwd=%3 [NC,R=302,L]
|
|
|
|
RewriteCond %{QUERY_STRING} ^option=com_project&view=category&template=category$
|
|
RewriteRule ^index\.php$ http://www.archlinexp.com/index.php?option=com_project&view=category&template=category&lang=hun [NC,R=301,L]
|
|
rewriterule ^collection/category_archlinexp/Hun$ http://www.archlinexp.com/index.php?option=com_project&view=category&template=category&lang=hun [NC,r=301,l]
|
|
rewriterule ^collection/category_archlinexp/(.*)$ http://www.archlinexp.com/index.php?option=com_project&view=category&template=category&lang=eng [NC,r=301,l]
|
|
|
|
rewriterule ^collection/upload/(.*)/(.*)/(.*)$ /index.php?option=com_showroom&view=upload&template=blankframe&file=$1&type=$2&lang=$3 [r=302,nc,l]
|
|
rewriterule ^collection/uploadgroup/(.*)/(.*)/(.*)$ /index.php?option=com_showroom&view=uploadgroup&template=blankframe&file=$1&type=$2&lang=$3 [r=302,nc,l]
|
|
|
|
rewriterule ^version/warehousedownloadlink/(.*)/(.*)$ /maintenance/warehousedownloadlink.php?link=$1&archlineversion=$2 [nc,l]
|
|
rewriterule ^version/warehousedownloadlink/(.*)$ /maintenance/warehousedownloadlink.php?link=$1 [nc,l]
|
|
rewriterule ^version/warehouseparsesource/$ /maintenance/warehouseparsesource.php [nc,l]
|
|
rewriterule ^version/warehousegetfileformat/(.*)/(.*)$ /maintenance/warehousegetfileformat.php?link=$1&archlineversion=$2 [nc,l]
|
|
|
|
rewriterule ^version/geopluginlink/$ /maintenance/geopluginlink.php [nc,l]
|
|
|
|
rewriterule ^edit-user-details(.*)$ index.php?option=com_users&view=profile&layout=edit [nc,l]
|
|
rewriterule ^public/tcexam/(.*)$ http://tcexam.archline.hu/ [r=301,nc,l]
|
|
|
|
rewriterule ^download/(.*)/(.*)/index_CSH.htm(.*)$ /public/downloads/$1/$2/index_CSH.htm$3 [r=301,nc,l]
|
|
|
|
RewriteCond %{HTTP_HOST} ^www.archlinexp.com$
|
|
rewriterule ^rss$ /news/feed/rss [r=302,nc,l]
|
|
|
|
RewriteCond %{HTTP_HOST} ^www.archlinexp.com$
|
|
rewriterule ^school/(.*)$ /iskolak/$1 [nc,l]
|
|
rewriterule ^pro_live_bundle /maintenance/pro_live_bundle.php [nc,l]
|
|
|
|
rewriterule ^hu/collection2/index/(.*)/(.*)$ /index.php?option=com_showroom&template=blankframe&lang=hun&ver=$2 [r=301,nc,l]
|
|
rewriterule ^en/collection2/index/(.*)/(.*)$ /index.php?option=com_showroom&template=blankframe&lang=eng&ver=$2 [r=301,nc,l]
|
|
rewriterule ^es/collection2/index/(.*)/(.*)$ /index.php?option=com_showroom&template=blankframe&lang=eng&ver=$2 [r=301,nc,l]
|
|
rewriterule ^it/collection2/index/(.*)/(.*)$ /index.php?option=com_showroom&template=blankframe&lang=eng&ver=$2 [r=301,nc,l]
|
|
rewriterule ^de/collection2/index/(.*)/(.*)$ /index.php?option=com_showroom&template=blankframe&lang=eng&ver=$2 [r=301,nc,l]
|
|
rewriterule ^collection2/index/hun/(.*)$ /index.php?option=com_showroom&template=blankframe&lang=hun&ver=$1 [r=301,nc,l]
|
|
rewriterule ^collection2/index/(.*)/(.*)$ /index.php?option=com_showroom&template=blankframe&lang=eng&ver=$2 [r=301,nc,l]
|
|
|
|
RewriteCond %{HTTP_HOST} ^www.archlinexp.com$
|
|
rewriterule ^collection2$ /index.php?option=com_showroom&template=blankframe&lang=eng&ver=29 [r=301,nc,l]
|
|
RewriteRule ^enrollments/courses/([^/]*)/?([^/]*)?/?([^/]*)?$ /beiratkozas/tanfolyamok.php?url=$1&id=$2&lesson=$3 [nc,l]
|
|
|
|
RewriteCond %{HTTP_HOST} ^www.archline.hu$
|
|
rewriterule ^collection2$ /index.php?option=com_showroom&template=blankframe&lang=hun&ver=29 [r=301,nc,l]
|
|
RewriteRule ^beiratkozas/tanfolyamok/([^/]*)/?([^/]*)?/?([^/]*)?$ /beiratkozas/tanfolyamok.php?url=$1&id=$2&lesson=$3 [nc,l]
|
|
|
|
rewriterule ^projects/supportupload/(.*)/(.*)$ /maintenance/supportupload.php?sn=$1&guid=$2 [nc,l]
|
|
rewriterule ^crash/(.*)/(.*)/(.*)/(.*)$ /maintenance/crash.php?guid=$1&build=$2&lang=$3&serial=$4 [nc,l]
|
|
rewriterule ^crash/(.*)/(.*)/(.*)$ /maintenance/crash.php?guid=$1&build=$2&lang=$3 [nc,l]
|
|
rewriterule ^crash/(.*)/(.*)$ /maintenance/crash.php?guid=$1&build=$2 [nc,l]
|
|
rewriterule ^crash/(.*)$ /maintenance/crash.php?guid=$1 [nc,l]
|
|
rewriterule ^version/regisztracio/(.*)/(.*)/(.*)$ /maintenance/regisztracio.php?serial=$1&isid=$2&kod=$3 [nc,l]
|
|
rewriterule ^version/regisztracio/(.*)/(.*)$ /maintenance/regisztracio.php?serial=$1&isid=$2 [nc,l]
|
|
rewriterule ^version/unregister/(.*)/(.*)$ /maintenance/unregister.php?serial=$1&isid=$2 [nc,l]
|
|
rewriterule ^version/aktivalasikod/(.*)/(.*)/(.*)$ /maintenance/aktivalasikod.php?serial=$1&isid=$2&kod=$3 [nc,l]
|
|
rewriterule ^version/update/(.*)/(.*)/(.*)$ /maintenance/update.php?projectid=$1&pkgid=$2&serial=$3 [nc,l]
|
|
rewriterule ^version/elofizkarbxml/(.*)/(.*)$ /maintenance/elofizkarbxml.php?file=$1&lang=$2 [nc,l]
|
|
rewriterule ^version/elofizkarbxml/(.*)$ /maintenance/elofizkarbxml.php?file=$1 [nc,l]
|
|
rewriterule ^version/updatexml$ /maintenance/updatexml.php [nc,l]
|
|
rewriterule ^version/getserialanddaycode/(.*)/(.*)/(.*)/(.*)$ /maintenance/getserialanddaycode.php?serial=$1&ver=$2&isid=$3&npid=$4 [nc,l]
|
|
rewriterule ^cron/startchangedhardlock$ /maintenance/startchangedhardlock.php [nc,l]
|
|
rewriterule ^cron/hibasprograminditasok$ /maintenance/hibasprograminditasok.php [nc,l]
|
|
rewriterule ^cron/elofizurites$ /maintenance/elofizurites.php [nc,l]
|
|
rewriterule ^cron/elofizexcelcheck$ /maintenance/elofizexcelcheck.php [nc,l]
|
|
rewriterule ^other/viewerlejartaktorlese$ /maintenance/viewerlejartaktorlese.php [nc,l]
|
|
rewriterule ^unsubscribe/(.*)$ /maintenance/leiratkozas.php?email=$1 [nc,l]
|
|
rewriterule ^leiratkozas/(.*)$ /maintenance/leiratkozas.php?email=$1 [nc,l]
|
|
rewriterule ^events/newclick/(.*)/(.*) /maintenance/newclick.php?alias=$1&email=$2 [nc,qsa,l]
|
|
rewriterule ^crashadmin$ /maintenance/crashadmin.php [nc,l]
|
|
rewriterule ^crashadmin/(.*)$ /maintenance/crashadmin.php?guid=$1 [nc,l]
|
|
|
|
# 404-es oldalak atiranyitasa
|
|
rewriterule ^public/support/tips/(.*)/xml/settings.xml /maintenance/empty_result.xml [nc,l]
|
|
rewriterule ^public/support/commandtips/(.*)/xml/settings.xml /maintenance/empty_result.xml [nc,l]
|
|
|
|
#rewriterule ^business/activate_30/(.*)$ /cadline-kft [r=301,nc,l]
|
|
#rewriterule ^settings/lang/(.*)$ / [r=301,nc,l]
|
|
#RewriteRule ^public/hr/ARCHLINE_XP2015_64bit_setup.exe$ /public/downloads/eng/ARCHLINE_XP2015_64bit_setup.exe [r=302,NC,L]
|
|
#rewriterule ^azure/status/(.*)/(.*)/(.*)/(.*)/(.*)$ /maintenance/azure_vm_status.php?vmname=$1&lastactivity=$2&rdppart=$3&sessionid=$4&cpuusage=$5 [nc,l]
|
|
#rewriterule ^azure/status_test/(.*)$ /maintenance/azure_vm_status_test.php?stop=$1 [nc,l]
|
|
#rewriterule ^cron/messages_email$ /maintenance/messages_email.php [nc,l]
|
|
#rewriterule ^cron/downloademail$ /maintenance/downloademail.php [nc,l]
|
|
|
|
|
|
|
|
rewriterule ^download/download-center/downloadable-projects https://www.archlinexp.com/education/workshops/workshop-application-preliminary [nc,l]
|
|
|
|
Redirect /blog/szakmai-cikkek/rendering-oktatasi-segedlet https://help.archlinexp.com/hc/hu-hu/articles/360019417997-Rendering-oktat%C3%A1si-seg%C3%A9dlet
|
|
Redirect /blog/professional-articles/rendering-tutorial https://help.archlinexp.com/hc/en-us/articles/360019417997-Rendering-Tutorial
|
|
Redirect /oktatas/rendszerkovetelmenyek https://help.archlinexp.com/hc/hu-hu/articles/360012845578-Rendszerk%C3%B6vetelm%C3%A9nyek
|
|
Redirect /education/system-requirements https://help.archlinexp.com/hc/en-us/articles/360012845578-System-requirements
|
|
Redirect /termekek/archline-xp-live/live-rendszerkovetelmenyek https://help.archlinexp.com/hc/hu-hu/articles/360012845578-Rendszerk%C3%B6vetelm%C3%A9nyek
|
|
Redirect /oktatas/faq https://help.archlinexp.com/hc/hu-hu/articles/360012793498-Mit-csin%C3%A1l-az-ARCHLine-XP-program
|
|
Redirect /education/faq https://help.archlinexp.com/hc/en-us/articles/360012793498-What-is-ARCHLine-XP-Professional-
|
|
|
|
## Begin - Tanfolyam oldalak atiranyitasa az uj oldalra.
|
|
#
|
|
Redirect /oktatas/workshopok/alapfoku-tanfolyam https://www.archline.hu/oktatas/workshopok
|
|
Redirect /oktatas/workshopok/kozepfoku-tanfolyam https://www.archline.hu/oktatas/workshopok
|
|
Redirect /oktatas/workshopok/felsofoku-tanfolyam https://www.archline.hu/oktatas/workshopok
|
|
Redirect /oktatas/workshopok/epiteszeti-tanfolyam https://www.archline.hu/oktatas/workshopok
|
|
#
|
|
## End - Tanfolyam oldalak atiranyitasa az uj oldalra.
|
|
|
|
## Begin - Rewrite rules to block out some common exploits.
|
|
# If you experience problems on your site block out the operations listed below
|
|
# This attempts to block the most common type of exploit `attempts` to Joomla!
|
|
#
|
|
# Block out any script trying to base64_encode data within the URL.
|
|
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
|
|
# Block out any script that includes a <script> tag in URL.
|
|
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
|
|
# Block out any script trying to set a PHP GLOBALS variable via URL.
|
|
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
|
|
# Block out any script trying to modify a _REQUEST variable via URL.
|
|
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
|
|
# Return 403 Forbidden header and show the content of the root homepage
|
|
RewriteRule .* index.php [F]
|
|
#
|
|
## End - Rewrite rules to block out some common exploits.
|
|
|
|
## Begin - Custom redirects
|
|
#
|
|
# If you need to redirect some pages, or set a canonical non-www to
|
|
# www redirect (or vice versa), place that code here. Ensure those
|
|
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
|
|
#
|
|
## End - Custom redirects
|
|
|
|
##
|
|
# Uncomment following line if your webserver's URL
|
|
# is not directly related to physical file paths.
|
|
# Update Your Joomla! Directory (just / for root).
|
|
##
|
|
|
|
# RewriteBase /
|
|
|
|
## Begin - Joomla! core SEF Section.
|
|
#
|
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
|
#
|
|
# If the requested path and file is not /index.php and the request
|
|
# has not already been internally rewritten to the index.php script
|
|
RewriteCond %{REQUEST_URI} !^/index\.php
|
|
# and the requested path and file doesn't directly match a physical file
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
# and the requested path and file doesn't directly match a physical folder
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
# internally rewrite the request to the index.php script
|
|
RewriteRule .* index.php [L]
|
|
#
|
|
## End - Joomla! core SEF Section.
|