Click here to Skip to main content
15,906,081 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to see in my adressbar this: or
offcourse club1 and club2 are not the real names :)
I have almost no knowledge about htaccess.

I want to use the GET parameter "club" in my phpfiles to determen withs club is accessing the site.

I have already this code:
RewriteEngine On

#make sure we use https
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [l]

#always work with www.
RewriteCond %{HTTP_HOST} ^
RewriteRule (.*)$1


What I have tried:

I have tryed so many this I can't remember them all.
The latest tryes are
#RewriteEngine On
#<IfModule mod_rewrite.c>
#Options +FollowSymlinks
#RewriteEngine on
#RewriteBase /

# /schaak/anything -> page.php?url=anything
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^/schaak/([^/]*)$ /schaak/index.php?club=$1 [L]


#RewriteRule ^redirect/1/(.*)$$1 [R=301,L]

#RewriteRule ^/redirect/1/(.*)$$1 [R=301,L]

#RewriteBase /
#RewriteRule ^redirect/1/(.*)$$1 [R=301,L]

#RewriteBase /
#RewriteRule ^/redirect/1/(.*)$$1 [R=301,L]

Naturaly without the # for each try.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900