Results 1 to 6 of 6
Thread: URL rewrite syntax
Nov 15, 2013, 10:24 #1
- Join Date
- Dec 2011
- 0 Post(s)
- 0 Thread(s)
URL rewrite syntax
I've just been having a look at this, and have gotten halfway to what I would like to do.
So I've got it working by changing my .htaccess file to include:
Options +FollowSymLinks RewriteEngine on RewriteRule index/LodgeID/(.*)/ index.php?LodgeID=$1 RewriteRule index/LodgeID/(.*) index.php?LodgeID=$1
Which, for example, is rewriting:
And I've resolved the issue of my paths to images and CSS files going AWOL.
What I would like to be able to do is include a variant of the lodge name in the URL.
I do have a field in the lodges table which has a short name string which could be used, e.g.:
Is it possible to use rewrite the URL to:
Where 'lodgename' is stored as a field in the same lodges table as LodgeID?
Hope that makes sense. Thanks.
Last edited by Mittineague; Nov 23, 2013 at 19:03. Reason: delinking example URLs