Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Main page and directory structure

Quote Reply
Main page and directory structure
Hi all,

I'm doing a mayor redesign of my site and I want to build my directory using this directory structure...

Site root -> index.html
Site root -> directory/category1/index.html
Site root -> directory/category2/index.html
Site root -> directory/category3/index.html
etc...

Also i'm configuring mod_perl to be used on my server to improve server loads, so I'm thinkiing to configure mod_perl to be used on siteroot/directory and my linkssql admin area.

Does enyone knows how can I setup links to build the main page on my root server and all the category pages inside the "directory" subdirectory?

Thanks in advance,

Jesus

PS
I was reading about to use sym links but i dont know if that could help me with search engine rankings, any help will be really appreciate it.

Last edited by:

Jesus: Feb 8, 2005, 8:37 PM
Quote Reply
Re: [Jesus] Main page and directory structure In reply to
Hi all,

I think this could be the answer:

http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=132116#132116

But as that thread its from 2001, I just want to know if this stills works and if this doesnt hurt se rankings.

Thanks,

Jesus

Last edited by:

Jesus: Feb 8, 2005, 10:16 PM
Quote Reply
Re: [Jesus] Main page and directory structure In reply to
Hi,

You could try mod_rewrite in the root of your site.

1) Upload a .htaccess file into your /public_html folder (or whatever your public WWW folder is)/

2) Add the following content;

Code:
RewriteEngine On
RewriteRule ^/$ /directory/index.html [L]
RewriteRule ^/index.html$ /directory/index.html [L]

This *should* then link http://www.yoursite.com/ to http://www.yoursite.com/directory/index.html.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Feb 10, 2005, 12:29 AM
Quote Reply
Re: [Andy] Main page and directory structure In reply to
Thanks Andy, let me try the mod_rewrite then :)

Jesus
Quote Reply
Re: [Jesus] Main page and directory structure In reply to
Andy, even better i'm trying to make the link to the dynamic site insted of building all the pages under the directory

But I still have a question, should be

writeEngine on

or

RewriteEngine on

also, do I nee to close at the end of the .htaccess the RewriteEngine off?

Thanks again for your time and patience,

Jesus
Quote Reply
Re: [Jesus] Main page and directory structure In reply to
Hi,

Sorry about that... looks like the [code] tag went in the wrong place :/

Try this;

Code:
RewriteEngine On
RewriteRule ^/$ /directory/index.html [L]
RewriteRule ^/index.html$ /directory/index.html [L]

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!