Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Getting rid of News.php at the end of the domain name

Asked Modified Viewed 8,910 times
J
james1990
J
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Junior Member

Hey, How do i make it so news.php doesn't show on my domain? for example i want it to be www.mydomain.com not www.mydomain.com/news.php . Ive seen it done on a few sites but dont know how to do it can anyone help? :)

Thanks for any replies
Edited by james1990 on 25-02-2008 04:35,
0 replies

30 posts

V
vcristian
V
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 5 threads in the forums
answered
Junior Member

You did that?

and in Control Panel/System Admin/Main Settings/Site opening page:

don't put anything, and save


and i discover is better to put a slash / because otherwise the center panel will display on all pages

Sorry for late response
Edited by vcristian on 03-05-2008 01:35,
0 replies
— 1 month earlier —
J
jak17
J
jak17 10
  • Member, joined since
  • Contributed 155 posts on the community forums.
  • Started 46 threads in the forums
answered
Member

i used your method of using the require news thing and added it to my code but notw instead of my site being mysite.com its mysite.com/index.php
0 replies
A
AthlonJedi
A
  • Junior Member, joined since
  • Contributed 30 posts on the community forums.
  • Started 6 threads in the forums
answered
Junior Member

why not just use a vhost redirect?

i.e in Vhost container:

Redirect / /www.somesite.net
0 replies
V
vcristian
V
  • Junior Member, joined since
  • Contributed 28 posts on the community forums.
  • Started 5 threads in the forums
answered
Junior Member

Hy

user look and me on php-fusion ROMANIA discovered a way to solve the problem

On index.php
<?PHP require ('news.php'); ?>


and in Control Panel/System Admin/Main Settings/Site opening page:

don't put anything, and save
Edited by vcristian on 08-03-2008 06:16,
0 replies
J
james1990
J
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

i dont wanna loose all my content basically need to do <?php include("news.php"); ?> dunno were though
Edited by james1990 on 27-02-2008 03:06,
0 replies
R
Rawhead
R
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
answered
Newbie

strange.
Install your site in http://thetechportal.co.uk/php-files/
Then put the index.html in http://thetechportal.co.uk.
Change this tag to
 <iframe src="http://thetechportal.co.uk/php-files/

good luck and godnight
0 replies
J
james1990
J
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

its in the root directory so shall i just remove the /phpfusion?.

Ok i did it without /phpfusion and got the same result
Edited by james1990 on 27-02-2008 00:55,
0 replies
R
Rawhead
R
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
answered
Newbie

<head>

<link rel="shortcut icon" href="/favicon.ico" >

<link rel="icon" href="/animated_favicon1.gif" type="image/gif" >

<title>The Tech Portal Online Support Community</title>

</head>

<body scroll="no" leftmargin="-0" topmargin="-0" marginwidth="-0" marginheight="-0">

<div align="center">
<iframe src="http://thetechportal.co.uk/[color=#cc0033]Name of your phpfusion dir here[/color]"
       height="100%"
       width="100%"

       scrolling="auto"
       frameborder="0" >

</iframe>

</div>

</body>
0 replies
R
Rawhead
R
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
answered
Newbie

Ok whats our domainname? so I can fix the file for you.
Do you have phpfusion in a separate dir folder? if not make a dir and put your phpfusion scripts there. The index.html file schuld be in your root dir.
Edited by Rawhead on 27-02-2008 09:32,
0 replies
J
james1990
J
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

Rawhead wrote:

Quote

james1990 wrote:
why you offer help if your bieng rude ? all this does for me is provide me with a blank page, i want to keep my original index.php i just dont want the news.php to show evertime someone vistis the URL so i want it to be www.mydomain.com and not www.mydomain.com/news.php


Sorry M8 for being rude, I was in a bad mood yeasterday.
Plz try my example you dont have to delete anything. just make the file index.html and use the iframe tag to make a mirror at your site. it works.
The only thing you see is your domainname.com and nothing else.

The best of all is that you dont have to hack your phpfusion script.
;)


Allright ill give it another try :D

edit: i got this again http://boomshaa.net/file/467.jpg
Edited by james1990 on 26-02-2008 22:59,
0 replies
R
Rawhead
R
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
answered
Newbie

Quote

james1990 wrote:
why you offer help if your bieng rude ? all this does for me is provide me with a blank page, i want to keep my original index.php i just dont want the news.php to show evertime someone vistis the URL so i want it to be www.mydomain.com and not www.mydomain.com/news.php


Sorry M8 for being rude, I was in a bad mood yeasterday.
Plz try my example you dont have to delete anything. just make the file index.html and use the iframe tag to make a mirror at your site. it works.
The only thing you see is your domainname.com and nothing else.

The best of all is that you dont have to hack your phpfusion script.
;)
0 replies
J
james1990
J
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

the htacces thing is just to make a big url into a smaller one? its confusing especially when i know theres a simple answer
0 replies
S
sigurdsn
S
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 4 threads in the forums
answered
Junior Member

Maybe (!), you are talking about .htaccess URL rewriting??
If that's so check out this page to rewrite a single page like news.php:
http://www.iwebtool.com/htaccess_url_...rl_rewrite

Or this page for a longer introduction of how to do URL rewriting in .htaccess:
http://www.yourhtmlsource.com/siteman...iting.html

Also google for ".htaccess URL rewriting" or similar..

;)
0 replies
J
james1990
J
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Ok tryed that and the news.php still remains :S and the login doesn't work then
Edited by james1990 on 26-02-2008 18:28,
0 replies
D
DubSev
D
DubSev 10
......................................
let's go f***ing mental! la la la la...
  • Senior Member, joined since
  • Contributed 285 posts on the community forums.
  • Started 5 threads in the forums
answered
Senior Member

Try this:
rename index.php to index2.php (just to keep it on the server for back-up)
on your local system rename news.php to index.php and upload it (now you have 2 identical php files: one called index.php, one called news.php, the last one you really need for the readmore stuff if your theme has not been modified to this new index stuff)

However: you can't use the opening page feature anymore since the original index.php redirects to the opening page and your new one won't, but the redirecting form the original index.php might just be the PR problem. (just guessing)

Plz don't tell it don't work: it's working just fine for me!
0 replies
J
james1990
J
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

kemper wrote:
What is the difference?

Even if you have www.mydomain.com that is not running on php-fusion, the official home page is not www.mydomain.com. By default, the main page is www.mydomain.com/index.html (or .php) or www.mydomain.com/default.html (or .php).

It is not like you have to tell people that you want to visit your website that your domain is www.mydomain.com/news.php. They will still enter your site by going to www.mydomain.com.


Becuase it effects my current page rank, lol i just want somone to explain how to do it
0 replies
M
mattvaughn
M
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
answered
Newbie

.htaccess way works..
Edited by mattvaughn on 26-02-2008 06:24,
0 replies
K
kemper
K
kemper 10
farm4.static.flickr.com/3057/2609887104_4470d79b05.jpg
  • Senior Member, joined since
  • Contributed 235 posts on the community forums.
  • Started 8 threads in the forums
answered
Senior Member

What is the difference?

Even if you have www.mydomain.com that is not running on php-fusion, the official home page is not www.mydomain.com. By default, the main page is www.mydomain.com/index.html (or .php) or www.mydomain.com/default.html (or .php).

It is not like you have to tell people that you want to visit your website that your domain is www.mydomain.com/news.php. They will still enter your site by going to www.mydomain.com.
0 replies
J
james1990
J
  • Junior Member, joined since
  • Contributed 16 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

why you offer help if your bieng rude ? all this does for me is provide me with a blank page, i want to keep my original index.php i just dont want the news.php to show evertime someone vistis the URL so i want it to be www.mydomain.com and not www.mydomain.com/news.php
0 replies
R
Rawhead
R
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
answered
Newbie

ok dont doit works for me I have done this a 1000 times so you are right it dosent work...... hmmm did you need help or what????
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 30 posts
  • Votes 0 votes
  • Topic users 11 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet