Forum Moderators: phranque
I would like the following url
[mysite.com...]
to load [mysite.com...]
I dont mind if it is a catch all i.e.
[mysite.com...] page)
Loads
[mysite.com...] page)
or
I list every page individually eg
RewriteEngine on
RewriteRule ^http://www.mysite.com/content/blue-widgets-blue/$ [mysite.com...] [L]
Thank you
RewriteRule ^content/blue-widgets-blue/$ /content/static/blue-widgets-blue.php [L]
The catch-all version would be something like:
RewriteRule ^content/([^/]+)/$ /content/static/$1.php [L]
I recommend visiting the Apache Library [webmasterworld.com] and Forum Charter [webmasterworld.com] to get a better understanding of how mod_rewrite works and what it does.
Hope this helps.
Justin