-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
35 lines (18 loc) · 1.07 KB
/
.htaccess
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
RewriteEngine On
RewriteRule ^products/([0-9a-zA-Z]+)$ pages/php/product.php?cat_name=$1
RewriteRule ^buy_now/(.*)$ pages/php/buy_product.php?product_id=$1
RewriteRule ^cart$ pages/php/cart_design.php
RewriteRule ^search/(.*)$ pages/php/search_result.php?search=$1
RewriteRule ^online_payment/(.*)/(.*)/(.*)/(.*)/(.*)$ pay/pay.php?id=$1&title=$2&brand=$3&price=$4&qty=$5
RewriteRule ^profile$ pages/php/profile.php
RewriteRule ^signin$ signin.php
RewriteRule ^([0-9a-zA-Z]+)$ $1.php
RewriteRule ^purchase_status/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ pay/purchase_entry.php?id=$1&title=$2&brand=$3&amount=$4&qty=$5&fullname=$6&mobile=$7&payment-mode=$8
RewriteRule ^cod_payment/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)$ pay/purchase_entry.php?id=$1&title=$2&brand=$3&amount=$4&qty=$5&payment-mode=$6
ErrorDocument 404 http://localhost/bom/php/eshop/error_404.php
ErrorDocument 403 http://localhost/bom/php/eshop/error_403.php
DirectoryIndex index.php
Options -Indexes
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^www\.?eshop\.com
RewriteRule ^(.*)$ https://eshop\.com [R,L]