Hey,
Thanks for that
I have been tweaking all day and at the moment I have a page set up at
www.barrasweb.co.uk/hello
Which redirects to barrasweb.co.uk/index.php?id=
I'd prefer it to rewrite rather than redirect but its a start.
the htaccess file is as below. There is a load of junk and comments in there where I have been working.
Code:
AddType x-mapp-php5 .php
Options +FollowSymLinks
RewriteEngine On
#RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-l
#RewriteRule ^(.*)$ index.php?id=$l [QSA, L]
#RewriteRule ^([a-z0-9\-]+)$ index.php?id=$l [QSA, L]
##RewriteRule ^v/([^/]*)$ index.php?id=$1 [L]
##RewriteRule ^v/hello.html landed.html [L]
### WORKING RewriteRule ^hello\.html$ /landed.html [R,NC,L]
### STILL WORKS RewriteRule ^hello$ /index.php?id=$1 [R,NC,L]
RewriteRule ^hello$ /index.php?id=$1 [R,NC,L]
The last line in there seems to work but obviously it's only looking for a static hello page.
In the end I'd like
/folder/page
to redwrite to
/index.php?id=folder/page
Thanks in advance.
Bookmarks