How to not show page

Hi,

 

does anybody know how to not show a webpage from the url, if I don't want to use that page.

 

Thanks

 

 

Quote · 26 May 2009

Could you explain that in a little more detail?  It's not clear what you want to do.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 26 May 2009

well, let's say that on my site, i don't want to use all of the dolphin pages.

 

Like maybe the contact page or the search page, or the browse page....

 

If someone types the url  example: www.mysite.com/browse.php    they will see that page.

 

I don't really want that... is it possible to delete or hide those pages ( from the url )

 

 

Thanks for your reply

Quote · 27 May 2009

use an .htaccess file (google it) or rename them without a php extension.

Quote · 27 May 2009

What I do is rename the actual file such as:

filename.php

filename.php.ORG.xxxxxxx

The ORG stands for original and the xxxxxx being whatever you want to name it so

no one can 'guess' it.


The method to my madness is that the filename is still there as the original name if

I need to restore it later but anyone would have a VERY hard time guessing it.


Or you could also just rename it such as:

filename.php. xxxxxxxx


This would also give them a 404 not found error if they try to type the URL straight

into the browser.


You still need to remove it in the admin panel as well to make the navigation dissappear.


HTH

Quote · 28 May 2009

Hi,

does anybody know how to not show a webpage from the url, if I don't want to use that page.

Thanks

Try this solution :

Add these lines below at the top of your inc/header.inc.php just below this string <?

$disabledpages[] = "faq.php";
$disabledpages[] = "about_us.php";
//--- add more here
foreach($disabledpages as $key => $value )
{
if ( strpos("EXPERTX".$_SERVER[REQUEST_URI],$value) > 0 )
{
header("Location: index.php");
break;
}
}

see it here  http://www.dolphinbugfixing.com/614_MODS/faq.php

Live Support http://dolphinbugfixing.com
Quote · 28 May 2009

That is awesome dolphinbugfixing !

 

Cool, I gotta bookmark this one..

 

Thank you !

Quote · 28 May 2009

if ( strpos("EXPERTX".$_SERVER[REQUEST_URI],$value) > 0 )

Shouldn't the "EXPERTX" be changed to the users account name?

.

Quote · 28 May 2009

if ( strpos("EXPERTX".$_SERVER[REQUEST_URI],$value) > 0 )

Shouldn't the "EXPERTX" be changed to the users account name?

.

its a dummy text just to make sure the strpos function returns a value greater than 0

Live Support http://dolphinbugfixing.com
Quote · 28 May 2009

Aaaaaaahh OK I get it now.

Thanks I didn't look close enough LOL! 

.

Quote · 28 May 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.