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:
Hi
I want to see in my adressbar this: https://www.janr.be/schaak/club1 or https://www.janr.be/schaak/club2
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} ^janr.be
RewriteRule (.*) http://www.janr.be/$1


Jan

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]

#</IfModule>

#RewriteRule ^redirect/1/(.*)$ http://www.janr.be/redirect/files/$1 [R=301,L]

#RewriteRule ^/redirect/1/(.*)$ http://www.janr.be/redirect/files/$1 [R=301,L]

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

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

Naturaly without the # for each try.
Posted

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