Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 Remove Subfolder From URL - Old School Static PHP Site

View previous topic View next topic Go down 
AuthorMessage
Creep
Member
Member
Creep

Posts : 1
Join date : 2011-05-19

Remove Subfolder From URL - Old School Static PHP Site Empty
PostSubject: Remove Subfolder From URL - Old School Static PHP Site   Remove Subfolder From URL - Old School Static PHP Site EmptyThu Jun 23, 2011 7:46 am

Hi Scriptkiddie!
Here's the deal... i'm working with an 'old school' static folder setup where every content page on the site is simply folders and subfolders containing an index.php file.

Root Setup:

/images
/includes
/css
/content -- Top Level Pages And All There Sub Pages Stored Here.
index.php -- Home Page

My Page Structure From /content folder:

/content/toppage/ ||||||||||||||| Top Category or Page if you will
/content/toppage/sub1/ ||||||||| Sub Page of Top Page
/content/toppage/sub2/sub3/ ||| Sub of A Sub

How I would Like My URLs to be Rewritten

/content/toppage/ ---------------------> site.com/toppage/
/content/toppage/sub1/sub2/ ---------> site.com/toppage/sub2/
/content/toppage/sub1/sub2/sub3/ ---> site.com/toppage/sub3/

Essentially, the content folder will be removed from urls and then each top page's sub folders will never appear to be more than one folder away.

I figure if someone can show me how to rewrite up to 3 levels like this, i'd be able to figure out more and be able to organize my topics with as many subfolders as i want

thats about it. Obviously i still need my root folders such as images/ and includes/ & css/ to function like normal and the root index.php to be my home-page.

THANKS for looking and appreciate the help!
Back to top Go down
corvex
Member
Member
corvex

Posts : 7
Join date : 2011-05-16

Remove Subfolder From URL - Old School Static PHP Site Empty
PostSubject: Re: Remove Subfolder From URL - Old School Static PHP Site   Remove Subfolder From URL - Old School Static PHP Site EmptyThu Jun 23, 2011 7:47 am

Dam, i really have no idea... you need to wait for someone more experienced to come by..
Back to top Go down
 

Remove Subfolder From URL - Old School Static PHP Site

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» How to call a static RDP link from web - works in development server, not IIS
» Can't remove SQL Server :(
» remove the portal
» How to remove part of string?
» How many days of school have you missed this year?

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: Remove Subfolder From URL - Old School Static PHP Site Edit-trash Useless :: Trash-