• 0
Sign in to follow this  
Followers 0
WingTsun

.htaccess $_GET Problemo

Question

Sveiki!

Es veidoju saitu, kur man ir implementets ref links. Tur viss ir ok.. ka piem *.com/?ref=1 (Lietojot $_GET)

Vot es gribu uztaisit ar ModRewrite palidzibu linku, kas izskatas vairak ka *.com/join-1

Izmeginaju visadas versijas, neviena negaja, tapec versos pie masteriem seit :)

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Neredzot .htaccess saturu, varēs tikai zīlēt.

Edited by Val

Share this post


Link to post
Share on other sites
  • -2

Ar so informaciju ir pietiekami, lai varetu uzrakstit ejosu .htaccess

Pec neskaitamiem meginajumiem, izdevas to izdarit. Ja kads uzduras uz problemu, veidot ModRewrite Referral/Affiliate linkus

Luk ir stradajos kods:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^devil-([A-Za-z0-9]*)$ /index.php?ref=$1 [NC,L,QSA]

 

Edited by WingTsun

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0