Web Hosting Talk







View Full Version : Question: How to change main page visitors view? index.php to portal.php


Proek
12-01-2008, 04:03 AM
My current default view page is index.php
I want portal.php to be the main page when you visit my website
I've done this before, but forgot how to do so
sorry :(

Proek
12-01-2008, 04:03 AM
My current default view page is index.php
I want portal.php to be the main page when you visit my website
I've done this before, but forgot how to do so
sorry :(

Proek
12-01-2008, 04:03 AM
My current default view page is index.php
I want portal.php to be the main page when you visit my website
I've done this before, but forgot how to do so
sorry :(

Proek
12-01-2008, 04:03 AM
My current default view page is index.php
I want portal.php to be the main page when you visit my website
I've done this before, but forgot how to do so
sorry :(

Proek
12-01-2008, 04:06 AM
would this work?
DirectoryIndex portal.php
any other methods?

Proek
12-01-2008, 04:06 AM
would this work?
DirectoryIndex portal.php
any other methods?

Proek
12-01-2008, 04:06 AM
would this work?
DirectoryIndex portal.php
any other methods?

Proek
12-01-2008, 04:06 AM
would this work?
DirectoryIndex portal.php
any other methods?

njoker555
12-01-2008, 04:10 AM
usually the portal is the index file lol..you may not be setting up properly, what scripts are you using?

njoker555
12-01-2008, 04:10 AM
usually the portal is the index file lol..you may not be setting up properly, what scripts are you using?

njoker555
12-01-2008, 04:10 AM
usually the portal is the index file lol..you may not be setting up properly, what scripts are you using?

njoker555
12-01-2008, 04:10 AM
usually the portal is the index file lol..you may not be setting up properly, what scripts are you using?

HostRefugee-Vince
12-01-2008, 04:11 AM
would this work?
DirectoryIndex portal.php
any other methods?
That's the best method I can think of. Just throw that into a .htaccess and it should work like you want.

HostRefugee-Vince
12-01-2008, 04:11 AM
would this work?
DirectoryIndex portal.php
any other methods?
That's the best method I can think of. Just throw that into a .htaccess and it should work like you want.

HostRefugee-Vince
12-01-2008, 04:11 AM
would this work?
DirectoryIndex portal.php
any other methods?
That's the best method I can think of. Just throw that into a .htaccess and it should work like you want.

HostRefugee-Vince
12-01-2008, 04:11 AM
would this work?
DirectoryIndex portal.php
any other methods?
That's the best method I can think of. Just throw that into a .htaccess and it should work like you want.

njoker555
12-01-2008, 04:15 AM
That's the best method I can think of. Just throw that into a .htaccess and it should work like you want.
ah that reminds me lol...you can also use the index.php file to refresh to the portal straight away

njoker555
12-01-2008, 04:15 AM
That's the best method I can think of. Just throw that into a .htaccess and it should work like you want.
ah that reminds me lol...you can also use the index.php file to refresh to the portal straight away

njoker555
12-01-2008, 04:15 AM
That's the best method I can think of. Just throw that into a .htaccess and it should work like you want.
ah that reminds me lol...you can also use the index.php file to refresh to the portal straight away

njoker555
12-01-2008, 04:15 AM
That's the best method I can think of. Just throw that into a .htaccess and it should work like you want.
ah that reminds me lol...you can also use the index.php file to refresh to the portal straight away

IPH - Tim
12-01-2008, 04:20 AM
ah that reminds me lol...you can also use the index.php file to refresh to the portal straight away
You can do it that way to, but using a .htaccess file is more efficient.

IPH - Tim
12-01-2008, 04:20 AM
ah that reminds me lol...you can also use the index.php file to refresh to the portal straight away
You can do it that way to, but using a .htaccess file is more efficient.

IPH - Tim
12-01-2008, 04:20 AM
ah that reminds me lol...you can also use the index.php file to refresh to the portal straight away
You can do it that way to, but using a .htaccess file is more efficient.

IPH - Tim
12-01-2008, 04:20 AM
ah that reminds me lol...you can also use the index.php file to refresh to the portal straight away
You can do it that way to, but using a .htaccess file is more efficient.

MikeDVB
12-01-2008, 04:43 AM
.htaccess will cause the server to only send the portal.php when you load thedomain.com/thefolder/ instead of serving the index.php and then serving portal.php thereafter.

MikeDVB
12-01-2008, 04:43 AM
.htaccess will cause the server to only send the portal.php when you load thedomain.com/thefolder/ instead of serving the index.php and then serving portal.php thereafter.

MikeDVB
12-01-2008, 04:43 AM
.htaccess will cause the server to only send the portal.php when you load thedomain.com/thefolder/ instead of serving the index.php and then serving portal.php thereafter.

MikeDVB
12-01-2008, 04:43 AM
.htaccess will cause the server to only send the portal.php when you load thedomain.com/thefolder/ instead of serving the index.php and then serving portal.php thereafter.

njoker555
12-01-2008, 09:54 AM
You can do it that way to, but using a .htaccess file is more efficient.
yea i know :) I was just reminded of a few years ago when i was a beginner at this thing and i had no idea what .htaccess was or how to do anything with it until later on lol

njoker555
12-01-2008, 09:54 AM
You can do it that way to, but using a .htaccess file is more efficient.
yea i know :) I was just reminded of a few years ago when i was a beginner at this thing and i had no idea what .htaccess was or how to do anything with it until later on lol

njoker555
12-01-2008, 09:54 AM
You can do it that way to, but using a .htaccess file is more efficient.
yea i know :) I was just reminded of a few years ago when i was a beginner at this thing and i had no idea what .htaccess was or how to do anything with it until later on lol

njoker555
12-01-2008, 09:54 AM
You can do it that way to, but using a .htaccess file is more efficient.
yea i know :) I was just reminded of a few years ago when i was a beginner at this thing and i had no idea what .htaccess was or how to do anything with it until later on lol

gineey
12-01-2008, 09:57 AM
The simplest way is :-
DirectoryIndex > enter file name portal.php > save settings.

gineey
12-01-2008, 09:57 AM
The simplest way is :-
DirectoryIndex > enter file name portal.php > save settings.

gineey
12-01-2008, 09:57 AM
The simplest way is :-
DirectoryIndex > enter file name portal.php > save settings.

gineey
12-01-2008, 09:57 AM
The simplest way is :-
DirectoryIndex > enter file name portal.php > save settings.

bager
12-01-2008, 05:53 PM
if you want everything to be opened by portal.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* portal.php [L]
DirectoryIndex portal.php

bager
12-01-2008, 05:53 PM
if you want everything to be opened by portal.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* portal.php [L]
DirectoryIndex portal.php

bager
12-01-2008, 05:53 PM
if you want everything to be opened by portal.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* portal.php [L]
DirectoryIndex portal.php

bager
12-01-2008, 05:53 PM
if you want everything to be opened by portal.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* portal.php [L]
DirectoryIndex portal.php

Mike - Limestone
12-01-2008, 06:13 PM
The recommended solutions should work, but why are you not simply renaming portal.php to index.php? Are there a lot of other .php scripts on your web site that reference / link to portal.php?
-mike

Mike - Limestone
12-01-2008, 06:13 PM
The recommended solutions should work, but why are you not simply renaming portal.php to index.php? Are there a lot of other .php scripts on your web site that reference / link to portal.php?
-mike

Mike - Limestone
12-01-2008, 06:13 PM
The recommended solutions should work, but why are you not simply renaming portal.php to index.php? Are there a lot of other .php scripts on your web site that reference / link to portal.php?
-mike

Mike - Limestone
12-01-2008, 06:13 PM
The recommended solutions should work, but why are you not simply renaming portal.php to index.php? Are there a lot of other .php scripts on your web site that reference / link to portal.php?
-mike