# RewriteEngine on          
# RewriteBase /             
# RewriteCond %{SERVER_PORT} !^443$    
# RewriteRule ^.*$ http://%{SERVER_NAME}:9310/action/test.php [L,R]   
# # RewriteRule ^.*$ http://%{SERVER_NAME}:%{REQUEST_URI} [L,R]   
# AliasMatch ^/api/rest/v1/(.*)$ /var/www/[mywebsite]/htdocs/api/rest/v1/index.php
# # RewriteEngine On

# RewriteBase / 
# RewriteCond %{REQUEST_URI} !^/api/index\.php$ [NC]
# RewriteCond %{REQUEST_URI} ^/api [NC]
# RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI}/test.php [L,R]  

# <Directory "/test123">
#     RewriteEngine  on
#     RewriteBase    /testrestapp/
#     RewriteRule    ^src/public/index.php/hello$  hello/  [R]
# </Directory>


# Alias /test123 "/action"
# <Directory "/action">
#     Options FollowSymLinks
#     AllowOverride None
#     Order allow,deny
#     Allow from all
# </Directory>

# Options -Indexes
# Options +FollowSymlinks
# RewriteEngine on
# RewriteRule ^/action/test$ /action/test.php [NC,L]

# ServerName solar_php_shopee
RewriteEngine on
# RewriteCond %{QUERY_STRING}(.*)$
# 重寫規則 RewriteRule 'USER呼叫路徑' 'apache 實際對應路徑' [RewriteRule處理相關規則 詳見https://httpd.apache.org/docs/2.4/rewrite/flags.html]
RewriteRule shopee_api/(.*) action/shopeeapi.php?path=$1 [L,QSA]


#RewriteCond %{QUERY_STRING} ^id=(.+)$
#RewriteRule shopee_api/(.*) action/shopeeapi.php?path=$1&id=%1
#RewriteRule ^shopee_api/(.*)$ solar_php_shopee/action/$1.php

#RewriteRule ^ShopeeAPI/(.*)/(.$)$ solar_php_shopee/action/$1.php?$2