Jump to content

Working With Clean Urls


A2enMOD

Recommended Posts

Hi,

 

I have read numerous posts in this forum regarding clean URLs but its either I am not understanding or none of the posts relate to my situation.

 

First my code .htaccess:

 

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

 

My folder structure:

 

Content - this folder contains all of the called pages

index.php - all pages are called into this file using GET

 

The result of the above in URLs is a follows:

 

http://www.example.com/about

 

The problem I have is when I want to call a second level for example:

 

http://www.example.com/about/profiles

 

So just to recap all of the physical files are located in the Folder "content", though I believe from what I have been reading this is irrelevant.

 

Or do I have to create separate folders for each?

 

Primarily this is a mod_rewrite question so any help would be great

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.