I'm not sure what you mean, i've currently got:
RewriteEngine on
RewriteRule ^([^./]+)$ $1.php [L]
RewriteRule ^([^./]+)/([^./]+)/$ $2.php [L]
The page is called www.site.com/what-we-do.ph
and my link goes to www.site.com/about/what-we
but it's not working?
What should I link to on my page and how does it know it's part of the about section if the files are all in the same root?
Main Topics
Browse All Topics





by: babuno5Posted on 2009-01-21 at 09:43:23ID: 23431940
Actually the way you have things
p ry.php
-do -history
then you have to rewrite all the urls by specifying each like what you have done
RewriteRule ^about/history/$ company-history.php
The other option is to follow some convention
For example:
www.site.com/what-we-do.ph
www.site.com/company-histo
which will be rewritten as
www.site.com/about/what-we
www.site.com/about/company
so in the above case you will just have to write one rewrite url
RewriteRule ^([^./]+)/([^./]+)/$ $2.php [L]