-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathhtaccess-default
103 lines (78 loc) · 4.2 KB
/
htaccess-default
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# -------------------------------------------------
# Custom HTTP error pages
# -------------------------------------------------
ErrorDocument 404 /frame.php?mode=page_404&title=Page+not+found
# -------------------------------------------------
# Add MIME types for video uploads
# -------------------------------------------------
# AddType video/webm .webm
# AddType video/mp4 .mp4
# AddType video/ogg .ogv
AddType video/mp4 mp4 m4v
AddType audio/mp4 m4a
AddType video/ogg ogv
AddType audio/ogg ogg oga
AddType video/webm webm
RewriteEngine on
# -------------------------------------------------
# Rules for the new parser addresses
# -------------------------------------------------
# root page
RewriteRule ^/?$ frame.php?mode=index [QSA]
# bounce for old content pages to new locations
RewriteRule ^content/([^.]+)(.php)?$ $1 [L,R=301]
# bounce for old tour pages to details pages
RewriteRule ^tour/([0-9]+)/([^\/]+)/?$ details/$1/$2 [L,QSA,R=301]
RewriteRule ^tour/([0-9]+)/([^\/]+)/([0-9]+)/([^\/]+)/?$ details/$1/$2/$3/$4 [L,QSA,R=301]
# pre made content pages
RewriteRule ^contact/?$ frame.php?mode=page_contact&title=Contact+Us [QSA]
RewriteRule ^terms/?$ frame.php?mode=page_terms&title=Booking+Terms [QSA]
RewriteRule ^privacy/?$ frame.php?mode=page_privacy&title=Privacy+Policy [QSA]
RewriteRule ^about/?$ frame.php?mode=page_about&title=About+Us [QSA]
# all custom created content pages
RewriteRule ^page/([^\/]*)/?$ frame.php?mode=page_content&page=$1 [QSA]
# searches for tag and keyword with optional attached query string
RewriteRule ^tag/([^\/]*)/?$ frame.php?mode=index&tags=$1 [QSA]
RewriteRule ^keyword/([^\/]*)/?$ frame.php?mode=index&search_in=smart&search_for=$1 [QSA]
# searches for items by company ID (vendor only)
RewriteRule ^supplier/([^\/]*)/?$ frame.php?mode=index&cid=$1 [QSA]
# details pages
RewriteRule ^details/([0-9]+)/([^\/]+)/?$ frame.php?mode=page_details&com=$1 [QSA]
RewriteRule ^details/([0-9]+)/([^\/]+)/([0-9]+)/([^\/]+)/?$ frame.php?mode=page_details&com=$1&option=$3&date=$4 [QSA]
# order and booking pages
RewriteRule ^order/?$ frame.php?mode=page_order [QSA]
RewriteRule ^book/?$ frame.php?mode=page_book&sec=1&title=Book+Now [QSA]
# complete print and complete display page
RewriteRule ^complete/([^\/]*)/print/?$ booking_complete_print.php?trans_num=$1&title=Booking+Receipt [QSA]
RewriteRule ^complete/([^\/]*)/pdf/?$ booking_complete_pdf.php?trans_num=$1&title=Booking+Receipt [QSA]
RewriteRule ^complete/([^\/]*)/?$ frame.php?mode=booking_complete&trans_num=$1&title=Booking+Receipt [QSA]
# gift pages
RewriteRule ^gift-card/?$ frame.php?mode=gift_card&sec=1 [QSA]
RewriteRule ^gift-card/([^\/]*) frame.php?mode=gift_card_details&card=$1 [QSA]
RewriteRule ^gift-receipt/?$ frame.php?mode=gift_card_receipt [QSA]
RewriteRule ^gift-print/([^\/]*) gift_card_print.php?mode=gift_card_print&card=$1 [QSA]
RewriteRule ^gift-not-found/?$ frame.php?mode=gift_card_not_found [QSA]
# voucher page
RewriteRule ^voucher/([^\/]*)/?$ booking_tickets.php?trans_num=$1&title=Booking+Voucher [QSA]
# tickets page
RewriteRule ^tickets/([^\/]*)/?$ booking_tickets.php?trans_num=$1&title=Booking+Tickets [QSA]
RewriteRule ^tickets/([^\/]*)/print/?$ booking_tickets.php?trans_num=$1&title=Booking+Tickets&print=1 [QSA]
# waiver page
RewriteRule ^waiver/?$ frame.php?mode=page_waiver&sec=1&title=Waiver [QSA]
RewriteRule ^waiver/([^\/]*)/?$ frame.php?mode=page_waiver&sec=1&trans_num=$1&title=Waiver [QSA]
# RewriteRule ^waiver/print/?$ waiver_print.php?title=Waiver [QSA]
RewriteRule ^waiver/([^\/]*)/print/?$ waiver_print.php?trans_num=$1&title=Waiver [QSA]
# review pages
RewriteRule ^reviews/?$ frame.php?mode=page_review&title=Reviews [QSA]
RewriteRule ^reviews/([^\/]*)/?$ frame.php?mode=page_review&trans_num=$1&title=Reviews [QSA]
RewriteRule ^reviews/item/([^\/]*)/?$ frame.php?mode=page_review&com=$1&title=Reviews [QSA]
# summary page (for back-end use)
RewriteRule ^summary/([^\/]*)/?$ booking_summary.php?trans_num=$1&title=Booking+Summary [QSA]
# cookie policy for EU suppliers
RewriteRule ^cookie-policy/?$ frame.php?mode=page_cookies&title=Cookie+Policy [QSA]
# modal
# RewriteRule ^modal/?$ modal.php [QSA]
# dynamic robots.txt
RewriteRule ^robots\.txt$ /robots.php
# dynamic sitemap.xml
RewriteRule ^sitemap\.xml$ /sitemap.php