Forum Moderators: phranque
I want to convert the following:
[mysite.com...]
to
[mysite.com...]
and
[mysite.com...]
to
[mysite.com...]
The whole site exist out of one file which is index.php that calls the other pages in a string, for example
index.php?view=home
index.php?view=sitemap
index.php?view=links
So there are no numbers or something. I had a rewrite rule but I dont thing it is ok:
RewriteEngine on
RewriteRule ^view/([^/\.]+)/?$ index.php?view=$1 [L]
Does anyone now how i can get it right?
Cheers
Richard
<snip>
[edited by: jdMorgan at 1:27 pm (utc) on Aug. 4, 2006]
[edit reason]
[1][edit reason] No URLs, please. See TOS. [/edit] [/edit][/1]
RewriteEngine on
RewriteRule ^view/([^/.]+)\.html$ index.php?view=$1 [L]
See Changing Dynamic URLs to Static URLs [webmasterworld.com] in our forum library.
Jim