Skip to content

http://example.lgsl.com/?s=3 to http://example.lgsl.com/ipserver:port #107

Answered by BaxAndrei
Kent-Romania asked this question in Q&A
Discussion options

You must be logged in to vote

Incearca cu asta:

RewriteEngine On
RewriteRule ^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z0-9\.]+):([0-9][0-9]+)$ index.php?ip=$1&port=$2

DEMO: https://apps.baxandrei.ro/.bax/testrewrite/pro.mortall.ro:27018

Merge si cu RewriteRule ^([a-zA-Z0-9\.]+):([0-9][0-9]+)$ index.php?ip=$1&port=$2 pt ca nu are rost sa verifici prima data pt un ip 1.2.3.4 cand la urmatoarea verifici orice string din litere si numere

Replies: 3 comments 24 replies

Comment options

You must be logged in to vote
20 replies
@tltneon
Comment options

@BaxAndrei
Comment options

@Kent-Romania
Comment options

@BaxAndrei
Comment options

@Kent-Romania
Comment options

Comment options

You must be logged in to vote
3 replies
@Kent-Romania
Comment options

@BaxAndrei
Comment options

@Kent-Romania
Comment options

Answer selected by tltneon
Comment options

You must be logged in to vote
1 reply
@Kent-Romania
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants