Jump to content
php.lv forumi

.htaccess $_GET Problemo


Recommended Posts

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 :)

Link to post
Share on other sites

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
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...