View Full Version : minor URL issue
Pionex
05-17-2011, 08:52 AM
This is an easy fix, however, I cannot figure out how to fix it....
when I type in my url for example: Mysite.com
Im getting a message:
To change this page, upload your website into the public_html directory
Its not until i manually type in /forum.php when im route to my page.
My question is how to I direct www.mysite.com to automatically bring up www.mysite.com/forum.php
thank you for your help.
Eliasen
05-17-2011, 08:55 AM
You could do it with a "There I fixed it" solution like this:
Create a .php file and call it index.php
Header("Location: forum.php");
exit();
Or you could do this with htaccess:
Redirect 301 /index.html http://www.mysite.com/forum.php
There are most likely other ways to do this, I just threw a few examples out there :)
EDIT:
Hold on a moment, I think i see the problem.
Please check your public_html folder and see if there is a file called index.html - delete that and it should automatically use the index.php which comes with vbulletin :)
Pionex
05-17-2011, 09:06 AM
You could do it with a "There I fixed it" solution like this:
Create a .php file and call it index.php
Header("Location: forum.php");
exit();
Or you could do this with htaccess:
Redirect 301 /index.html http://www.mysite.com/forum.php
There are most likely other ways to do this, I just threw a few examples out there :)
Thank you for pointing me in the right direction, i found and edited the already included index.php
this made it so if www.mysite.com is posted, I get redirected to /forum.php
now, this brings a new question if a user is to type: mysite.com without the www. prefix the same problem is occurring how do i fix this?
Eliasen
05-17-2011, 09:08 AM
Please read my last post again, you can simply delete the index.html :) should fix it.
Pionex
05-17-2011, 09:12 AM
Deleted, and the .php file has been edited to make /forum at the root.
However without the prefix www. its still not routing.
Eliasen
05-17-2011, 09:14 AM
Just to make sure, did you delete the index.html or the index.php?
If you have deleted the index.php, please reupload the index.php which comes with vBulletin.
You need to delete the index.html ;)
Pionex
05-17-2011, 09:17 AM
hehe, yea im an idiot, however not that big of one..
Yea html has been deleted .php has been edited and is still on the server.
this has already fixed some of the problem, before www.mysite.com would bring up the problem page.
now only when mysite.com w/o the www. is typed do i receive that message.
Eliasen
05-17-2011, 09:21 AM
No offence meant by my previous post, sorry if you where offended!
The index.php which comes with vBulletin, should be left unmodified.
If you have been making changes to the index.php, please re-upload the index.php, found in the vBulletin .zip file, in the "upload" folder :).
If you use the original index.php file from vbulltin, it should also fix your "www" error.
Pionex
05-17-2011, 09:34 AM
No offence meant by my previous post, sorry if you where offended!
The index.php which comes with vBulletin, should be left unmodified.
If you have been making changes to the index.php, please re-upload the index.php, found in the vBulletin .zip file, in the "upload" folder :).
If you use the original index.php file from vbulltin, it should also fix your "www" error.
lol, not offended :) Im still learning, im sure ill sound like an idiot often.
What i modified in the .php was unmodified.
Seems that didnt help me at all in the first place...
still negative results without the www. prefix
Eliasen
05-17-2011, 09:35 AM
Np, i'll PM you, and i'll see if I can help you out :)
Pionex
05-17-2011, 09:37 AM
Thank you for all of your help, I some how fixed it due to you pointing me into the right direction.
Dont ask me if I could replicate what i did, because I will be like... uhhhh.... but in all fairness i just got off a 14hr shift, spending some time online before I sleep.
PROBLEM SOLVED !
Thank you Eliasen
Eliasen
05-17-2011, 09:39 AM
Np ;) - glad it worked out for you!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.