This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
forked from snytkine/LampCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RewriteRules.txt
40 lines (38 loc) · 1.58 KB
/
RewriteRules.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Rewrite Rules for Lampcms
# These rewrite rules are for hosting Lampcms in root directory of the site
# place in httpd.conf inside virtual host container for your site
# or add to .htaccess of your site
#
# IMPORTANT: If you activate these rewrite rules then
# you must also edit your !config.ini file - inside the [URL_PARTS]
# section make sure that FILE points to empty value:
# FILE =
#
# make sure you turn on rewrite engine - must have this somewhere before
# these rules:
RewriteEngine on
RewriteCond $1 !^(index\.php|(.+)\.(css|js|png|gif|jpg|jpeg)$|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
######### RULES FOR HOSTING LAMPCMS in SUB DIRECTORY (not in site's root) ################
#
# Option 1 - without using .htaccess:
# Place this in the <Directory/> Container that points to full path of sub-directory
# Example: (this is on Windows, on Linux just use Unix style full path)
# Notice - NO slash in front of index.php redirect!
# Of cause you must uncomment the 5 lines below
# <Directory C:\wamp\sites\LampCMS\forum>
# RewriteEngine on
# RewriteCond $1 !^(index\.php|(.+)\.(css|js|png|gif|jpg|jpeg|txt))
# RewriteRule ^(.*)$ index.php/$1
# </Directory>
#
#######################################################################
# Option 2: If .htaccess is enabled for your sub-directory
# Then place these lines in the .htaccess file
# in the directory where Lampcms going to be installed:
# (of cause uncomment the lines first)
#
# RewriteEngine on
# RewriteCond $1 !^(index\.php|(.+)\.(css|js|png|gif|jpg|jpeg|txt))
# RewriteRule ^(.*)$ index.php/$1
#