<IfModule mod_rewrite.c>
RewriteEngine On    # Turn on the rewriting engine
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
###########################################
# i2d App Builder 2021 #  

RewriteRule ^view/home/?$  user_views/dashboard.php?view=admin_home    [NC] 
RewriteRule ^add/quickentry/?$  user_views/views.php?view=add_quick_entry    [NC]  
RewriteRule ^add/rec/?$  ceo_views/views.php?view=add_rec_entry    [NC]  
RewriteRule ^edit/rec/([^/]+)/?$  ceo_views/views.php?view=add_rec_entry&type=edit&id=$1    [NC]  
RewriteRule ^list/rec/?$  ceo_views/lists.php?view=rec_list    [NC]
RewriteRule ^add/pay/?$  ceo_views/views.php?view=add_pay_entry    [NC]  
RewriteRule ^edit/pay/([^/]+)/?$  ceo_views/views.php?view=add_pay_entry&type=edit&id=$1    [NC]  
RewriteRule ^list/pay/?$  ceo_views/lists.php?view=pay_list    [NC]
RewriteRule ^edit/quickentry/([^/]+)/?$  user_views/views.php?view=add_quick_entry&type=edit&id=$1   [NC]  
RewriteRule ^make/call/([^/]+)/?$  user_views/views.php?view=make_call&id=$1&legend=1    [NC]  
RewriteRule ^record/call/([^/]+)/?$  user_views/views.php?view=make_call&id=$1&legend=2    [NC]  
RewriteRule ^add/update/([^/]+)/?$  user_views/views.php?view=add_update&id=$1    [NC]  # cat  
RewriteRule ^view/updates/([^/]+)/?$  user_views/views.php?view=view_lead&id=$1&legend=1    [NC]  # cat  
RewriteRule ^record/updates/([^/]+)/?$  user_views/views.php?view=view_lead&id=$1&legend=2    [NC]  # cat  
RewriteRule ^view/profile/?$  user_views/system.php?view=view_profile    [NC]  
RewriteRule ^view/notification/([^/]+)/?$  user_views/system.php?view=view_notification&id=$1    [NC]  
RewriteRule ^set/pass/?$  user_views/system.php?view=password    [NC]  
RewriteRule ^update/record/([^/]+)/?$  user_views/views.php?view=update_record&type=edit&id=$1&legend=1    [NC]  
RewriteRule ^edit/record/([^/]+)/?$  user_views/views.php?view=update_record&type=edit&id=$1&legend=2    [NC]  
RewriteRule ^view/record/([^/]+)/?$  user_views/views.php?view=view_record&id=$1    [NC]  
#RewriteRule ^edit/record/([^/]+)/?$  user_views/views.php?view=edit_record&type=edit&id=$1    [NC]  
RewriteRule ^list/entries/?$  user_views/lists.php?view=entries_list    [NC]
RewriteRule ^list/industries/?$  user_views/lists.php?view=industries_list    [NC]
RewriteRule ^list/quickentries/?$  user_views/lists.php?view=quick_entries_list    [NC]
RewriteRule ^list/quickentries/([^/]+)/?$  user_views/lists.php?view=quick_entries_list&id=$1    [NC]
RewriteRule ^list/quickentriesedit/([^/]+)/?$  user_views/lists.php?view=quick_entries_edit&id=$1    [NC]
RewriteRule ^list/pdf/([^/]+)/?$  user_views/lists.php?view=pdf_list&id=$1    [NC]
RewriteRule ^list/quickentries/([^/]+)/?$  user_views/lists.php?view=quick_entries_list&id=$1    [NC]
#RewriteRule ^list/response/([^/]+)/?$  user_views/lists.php?view=response_list&type=2&id=$1    [NC]
RewriteRule ^list/response/([^/]+)/?$  user_views/lists.php?view=response_list&type=2&id=$1    [NC]
RewriteRule ^list/feedbacks/?$  user_views/lists.php?view=feedback_list    [NC]
RewriteRule ^list/entries/([^/]+)/([^/]+)/?$  user_views/lists.php?view=entries_list&type=$1&id=$2    [NC]  
RewriteRule ^view/proposal/([^/]+)/?$  user_views/views.php?view=view_proposal&id=$1    [NC]  
RewriteRule ^login/?$  user_views/sign_ins.php?view=login    [NC] 
RewriteRule ^bye/?$  user_views/sign_ins.php?view=logout    [NC]
RewriteRule ^print/5dinvoice/([^/]+)/?$  invoice_5d/examples/5d_invoice1.php?id=$1    [NC]  
RewriteRule ^print/5dcustominvoice/([^/]+)/?$  invoice_5d/examples/5d_invoice2.php?id=$1    [NC]  
RewriteRule ^print/i2dcustominvoice/([^/]+)/?$  invoice_new/examples/i2d_invoice.php?id=$1    [NC]  
RewriteRule ^view/proposal/([^/]+)/?$  ceo_views/views.php?view=view_proposal&id=$1    [NC]  
RewriteRule ^add/5dinvoice/?$  ceo_views/5dviews.php?view=add_invoice    [NC]  
RewriteRule ^add/5dinvoice/?$  ceo_views/5dviews.php?view=add_invoice    [NC]  
RewriteRule ^add/5dcustominvoice/?$  ceo_views/5dviews.php?view=add_custom_invoice    [NC]  
RewriteRule ^add/5dtemplate/?$  ceo_views/5dviews.php?view=add_template    [NC] 
RewriteRule ^add/proposal/?$  ceo_views/views.php?view=add_proposal    [NC]  
RewriteRule ^add/webcustominvoice/?$  ceo_views/views.php?view=add_web_custom_invoice    [NC]  
RewriteRule ^edit/invoice/([^/]+)/?$  ceo_views/views.php?view=add_invoice&type=edit&id=$1    [NC]  
RewriteRule ^add/invoice/?$  ceo_views/views.php?view=add_invoice    [NC]  
RewriteRule ^add/webinvoice/?$  ceo_views/views.php?view=add_web_invoice    [NC]
RewriteRule ^print/invoice/([^/]+)/?$  invoice_new/examples/hosting_invoice1.php?id=$1&logo=1&ad=1    [NC]  
RewriteRule ^print/invoice/reminder/([^/]+)/?$  invoice_new/examples/hosting_reminder.php?id=$1&logo=1&ad=1    [NC]  
RewriteRule ^print/invoice/overdue/([^/]+)/?$  invoice_new/examples/hosting_overdue.php?id=$1&logo=1&ad=1    [NC]  
RewriteRule ^print/webinvoice/([^/]+)/?$  invoice_new/examples/web_invoice1.php?id=$1    [NC]
RewriteRule ^print/i2dblue/([^/]+)/?$  invoice_new/examples/i2d_blue.php?id=$1    [NC]
RewriteRule ^print/reciept/([^/]+)/?$  invoice_new/examples/hosting_invoice1_paid.php?id=$1&logo=1    [NC]  
RewriteRule ^add/customer/?$  ceo_views/views.php?view=add_customer    [NC]  
RewriteRule ^proposal/history/([^/]+)/?$  ceo_views/views.php?view=proposal_history&id=$1    [NC]  
RewriteRule ^edit/customer/([^/]+)/?$  ceo_views/views.php?view=add_customer&type=edit&id=$1    [NC]  
RewriteRule ^list/invoices/?$  ceo_views/lists.php?view=invoices_list    [NC]
RewriteRule ^list/customers/?$  ceo_views/lists.php?view=customers_list    [NC]
#RewriteRule ^list/proposals/?$  ceo_views/lists.php?view=proposals_list    [NC]
RewriteRule ^list/i2dblueproposals/([^/]+)/?$  user_views/lists.php?view=i2d_blue_list&id=$1    [NC]
RewriteRule ^list/i2dsmartshopproposals/([^/]+)/?$  user_views/lists.php?view=i2d_smartshop_list&id=$1    [NC]
RewriteRule ^view/i2dblue/([^/]+)/?$  user_views/views.php?view=view_i2d_blue_proposal&id=$1    [NC]
RewriteRule ^view/i2dsmartshop/([^/]+)/?$  user_views/views.php?view=view_i2d_smartshop_proposal&id=$1    [NC]
RewriteRule ^print/i2dprohost/([^/]+)/?$  invoice_new/examples/i2dprohost.php?id=$1&logo=0&ad=0    [NC]
#RewriteRule ^eprint/i2dprohost/([^/]+)/?$  invoice_new/examples/i2dprohost.php?id=$1&logo=1&ad=1    [NC]
RewriteRule ^eprint/i2dprohost/([^/]+)/?$  invoice_new/examples/i2dprohost_new.php?id=$1&logo=1&ad=1    [NC]
RewriteRule ^eprint2/i2dprohost/([^/]+)/?$  invoice_new/examples/i2dprohost_new.php?id=$1&logo=0&ad=0    [NC]
RewriteRule ^eprint2/i2dprohostpk/([^/]+)/?$  invoice_new/examples/i2dprohostpk.php?id=$1&logo=0&ad=0    [NC]
RewriteRule ^eprint/i2dprohostpk/([^/]+)/?$  invoice_new/examples/i2dprohostpk.php?id=$1&logo=1&ad=0    [NC]
RewriteRule ^list/proposals/([^/]+)/?$  user_views/lists.php?view=prohost_letter_head_list&id=$1    [NC]
RewriteRule ^list/prints/?$  user_views/lists.php?view=entries_list    [NC]
RewriteRule ^update/print/([^/]+)/?$  user_views/views.php?view=update_record&type=edit&id=$1&legend=2    [NC]
RewriteRule ^view/i2dwebmini/([^/]+)/?$  user_views/views.php?view=view_i2d_webmini_proposal&id=$1    [NC]
RewriteRule ^print/i2dwebmini/([^/]+)/?$  invoice_new/examples/i2d_webmini.php?id=$1    [NC]
RewriteRule ^list/i2dwebminiproposals/([^/]+)/?$  user_views/lists.php?view=i2d_webmini_list&id=$1    [NC]
RewriteRule ^view/i2dmedesk/([^/]+)/?$  user_views/views.php?view=view_i2d_medesk_proposal&id=$1    [NC]
RewriteRule ^print/i2dmedesk/([^/]+)/?$  invoice_new/examples/i2d_medesk.php?id=$1    [NC]
RewriteRule ^list/i2dmedeskproposals/([^/]+)/?$  user_views/lists.php?view=i2d_medesk_list&id=$1    [NC]
RewriteRule ^add/webminiinvoice/?$  ceo_views/views.php?view=add_webmini_invoice    [NC]
RewriteRule ^list/webminiinvoices/?$  ceo_views/lists.php?view=webmini_invoices_list    [NC]
RewriteRule ^print/i2dwebmini/([^/]+)/?$  invoice_new/examples/i2d_webmini.php?id=$1    [NC]
#this is sales start
RewriteRule ^add/staff/?$  user_views/views.php?view=add_staff    [NC]  
RewriteRule ^edit/staff/([^/]+)/?$  user_views/views.php?view=add_staff&type=edit&id=$1   [NC]
RewriteRule ^list/staff/([^/]+)/?$  user_views/lists.php?view=staff_list&id=$1    [NC]  
RewriteRule ^add/fuel/?$  user_views/views.php?view=add_fuel    [NC]  
RewriteRule ^edit/fuel/([^/]+)/?$  user_views/views.php?view=add_fuel&type=edit&id=$1   [NC]
RewriteRule ^list/fuel/([^/]+)/?$  user_views/lists.php?view=fuel_list&id=$1    [NC]  
RewriteRule ^add/config/?$  user_views/views.php?view=add_config    [NC]  
RewriteRule ^edit/config/([^/]+)/?$  user_views/views.php?view=add_config&type=edit&id=$1   [NC]
RewriteRule ^view/config/([^/]+)/?$  user_views/views.php?view=view_config&id=$1   [NC]
RewriteRule ^view/timeline/([^/]+)/?$  user_views/views.php?view=view_timeline&id=$1   [NC]
RewriteRule ^list/configs/([^/]+)/?$  user_views/lists.php?view=config_list&id=$1    [NC]  
RewriteRule ^list/timeline/([^/]+)/?$  user_views/lists.php?view=timeline_list&id=$1    [NC]
RewriteRule ^eprint/invoice/([^/]+)/?$  invoice_new/examples/hosting_invoice1.php?id=$1&logo=0&ad=0    [NC]
#this is id start
RewriteRule ^add/invite/?$  id_views/views.php?view=add_invite    [NC]
RewriteRule ^list/invites/?$  id_views/lists.php?view=invites_list    [NC]  
RewriteRule ^edit/invite/([^/]+)/?$  id_views/views.php?view=add_invite&type=edit&id=$1   [NC]
RewriteRule ^print/invite/([^/]+)/?$  invoice_new/examples/invite.php?id=$1&logo=1&ad=0    [NC]
RewriteRule ^view/i2dmsg/([^/]+)/?$  user_views/views.php?view=view_proposal_message&id=$1    [NC]
RewriteRule ^add/invrequest/?$  user_views/views.php?view=request_invoice    [NC]
RewriteRule ^edit/invrequest/([^/]+)/?$  user_views/views.php?view=request_invoice&type=edit&id=$1    [NC]
RewriteRule ^list/invrequests/([^/]+)/?$  user_views/lists.php?view=invoices_request_list&id=$1    [NC]
RewriteRule ^report/feedback/?$  invoice_new/examples/feedback_by_id.php [NC]
RewriteRule ^eprint2/i2dprohostadv/([^/]+)/?$  invoice_new/examples/i2dprohost_new.php?id=$1&logo=0&ad=0    [NC]
RewriteRule ^add/mobile/?$  user_views/views.php?view=add_mobile    [NC]
RewriteRule ^list/webinvoices/?$  ceo_views/lists.php?view=web_invoices_list    [NC]
RewriteRule ^dummy/invoice/([^/]+)/([^/]+)/?$  invoice_new/examples/dummy_invoice.php?id=$1&logo=0&ad=0&sno=$2    [NC]
RewriteRule ^view/training/([^/]+)/?$  user_views/views.php?view=training&id=$1    [NC]
</IfModule>
ErrorDocument 404 "Invalid Service - i2d App Builder ACCESS Engine." 
# i2d App Builder 2021 #