+ 1

.htaccess problem

I have a sit named api.eu5.org When the people who visit /ip/callbackExample I want to show them /index.php?method=getip&callback=callbackExample how to do it in .htaccess

23rd Jun 2018, 9:03 AM
Hsuan
Hsuan - avatar
10 odpowiedzi
+ 2
hello there, http://example.com/getip/callbackExample Try this RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /index.php?method=$1&callback=$2 [L]
23rd Jun 2018, 10:33 AM
ᴋᵘⁿᵃˡ
ᴋᵘⁿᵃˡ - avatar
+ 2
Yes,it works api.eu5.org/getip/aaa
23rd Jun 2018, 3:47 PM
Hsuan
Hsuan - avatar
+ 2
You should probably document the calls
11th Jul 2018, 2:10 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 2
Ben Allen (Njinx) document the calls? can you sat it more clearly?
11th Jul 2018, 4:12 AM
Hsuan
Hsuan - avatar
+ 1
Thanks a lot! ☺😊 by Ryan from🇹🇼
23rd Jun 2018, 2:24 PM
Hsuan
Hsuan - avatar
+ 1
Did this work??
23rd Jun 2018, 2:26 PM
ᴋᵘⁿᵃˡ
ᴋᵘⁿᵃˡ - avatar
+ 1
Links not work 張睿玹
10th Jul 2018, 6:23 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
Yes
11th Jul 2018, 1:04 AM
Hsuan
Hsuan - avatar
+ 1
Ok it's up now
11th Jul 2018, 2:10 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
?
11th Jul 2018, 4:12 AM
Hsuan
Hsuan - avatar