If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The content file for the page about is called about.php and is located in the webroot above public_html (I have this part working with the following rule)

Code:

RewriteRule ^(([^/]+/)*[^/.]+)$ index.php?page=$1 [L]

While navigating the "About us" page the user sees a link to view someones profile called "Profiles", as they hover over that link in the status bar the URL is displayed as follows because I wanted profiles to be a child of about:

Presently I have been unable to achieve this because of mainly a lack of knowledge when it comes to regex etc.

In terms of my folder structure on the server what would you recomend? is it necessary to place all of the files that are "Child files" to the about.php page in a folder called about, or, does the name of the folder not matter?

I am aware that if you have a folder with the same name as the parent file = "about.php" then problems occur, or at least they do for me.

The closest I got was using the following rule but as g1smd quite rightly advised I shouldnt use the optional / otherwise it can lead to duplicate content:

Profiles.php is now located in a folder called "us"

About.php is in the webroot

Code:

RewriteRule ^us/?(([^/]+/)*[^/.]+)?$ /us/index.php?page=$1 [L]

I believe this approach is completely wrong about as the URL would be displayed as: