Gossamer Forum
Home : Products : Gossamer Links : Discussions :

URL for TOP

Quote Reply
URL for TOP
Hi All,

I remember I once knew the solution for this but could not find it.

I created my own home page which is different from the one built by Linksql. How can I change the url for the "top" in "title_linked" to let it point to the home page I created? Or how can I ask Linksql to not build a home page?

Thank you.

Long
Quote Reply
Re: [long327] URL for TOP In reply to
Why not use SSI to include the index page?

i.e, page is built at http://www.site.com/links_sql/page.html

but use SSI on;
http://www.site.com/index.html to include the page above.

Hope I make sense Tongue

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!
Quote Reply
Re: [long327] URL for TOP In reply to
Hi,

This is basic, but it works for me:

If you are using the global to include the menu bar at the bottom of the pages, update the global to reflect your different 'home' page.

To change 'Home' on the linked category bar edit Build.pm at sub build_title_linked:

$output = $home ? qq| <a href="http://your home page here">$top</a> : | : '';

This won't, of course, be reflected if you change your directory structure or home page - in which case you'll need to manually update this again.

Hope this helps.

All the best
Shaun
Quote Reply
Re: [long327] URL for TOP In reply to
In Reply To:
... Or how can I ask Linksql to not build a home page?

For this you could create the home.html as a blank page with some JavaScript to redirect to your custom index page. This will catch strays ending up at the index.html created by the build process.

~ ERASER


Free JavaScripts @ Insight Eye
Quote Reply
Re: [Eraser] URL for TOP In reply to
Or alternatively, you could comment out the 'home' build sub in nph-build.cgi:

# Build Home Page.
GT::Plugins->dispatch ("$CFG->{admin_root_path}/Plugins", 'create_home', \&_build_home, {});

# Build Home Page.
# GT::Plugins->dispatch ("$CFG->{admin_root_path}/Plugins", 'create_home', \&_build_home, {});

All the best
Shaun
Quote Reply
Re: [qango] URL for TOP In reply to
You could also use ReWriteRule

(like this:

RewriteEngine On

RewriteRule ^/?$ /URI/of/To/Page [PT]

)

or ReDirectPermenant

(like this: RedirectPermanent /URI/of/page/asked/for /URL/Of/Page/to/Show)

(NOTE one is a URI, one a URL)

if you have access to the Apache httpd.conf.



I do this so that http://www.bcdb.com/ is ACTUALLY http://www.bcdb.com/pages/index.html , but looks like the root directory to the user. I guess is the reverse of what you want, but the theory should still apply.



For those interested in ReWrite, here is a cool one to change http://www.bcdb.com into http://www.bcdb.com/ (get that trailing slash!)

RewriteEngine On
RewriteCond %{HTTP_HOST} !www.bcdb.com
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R]



I also have a good rewrite to keep people from stealing your images, if anyone wants!
dave

Big Cartoon DataBase
Big Comic Book DataBase