Hi,
I’ve been browsing through the posts in the SEF group but can’t find what I’m looking for. If my question was already answered somewhere than maybe somebody can direct me to it.
My question is:
I would like to rewrite url’s like
/trips/Africa/Kenia/Title-of-the-trip
to
/tripsdir/showtrip.php?tripcode=KET
without changing the url.
In a database I’ve got the following vars:
continent
country
title
tripcode
I can write a .htaccess that would redirect the SEFs to the right page but not without changing the url.
Do I have to include below code in .htaccess to have all requests for directories and files which can’t be found sent to index.php? And if so, what should be in index.php?
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Thanks,
Gert