Default page if ?p= is not specified

JM

No avatar

2006-04-24 17:21

Hi. I'd like the first page that's shown to visitors to be index.php?p=p_6&sName=Home instead of just index.php. Is there an option (without using .htaccess) to change the index.php and set something like:

if { ?p='' (« empty) {
display index.php?p=p_6&sName=Home
}}

or something like that?

JM

No avatar

2006-04-24 17:21

that sign before 'empty' should be two arrows: <<

wizzud

No avatar

2006-04-24 17:58

Only by redirecting the browser.
You'd have to have something like ...

if p not given OR p is empty

header('Location: index.php?p=p_6&sName=Home');
exit();

where you have a content page of id = 6 called Home.

Back to top
about us | contact