forked from Rezgo/rezgo-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtaccess-default
79 lines (58 loc) · 2.99 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
# -------------------------------------------------
# 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 ^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]
# voucher page
RewriteRule ^voucher/([^\/]*)/?$ booking_voucher.php?trans_num=$1&title=Booking+Voucher [QSA]
RewriteRule ^voucher/([^\/]*)/pdf/?$ booking_voucher_pdf.php?trans_num=$1&title=Booking+Voucher [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]
# dynamic robots.txt
RewriteRule ^robots\.txt$ /robots.php
# dynamic sitemap.xml
RewriteRule ^sitemap\.xml$ /sitemap.php