FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Site Redirections





PTCpara
Hi, i have a problem with redirecting.

If someone enters www.ptcpara.com i want to open www.ptcpara.com/phpbb3/index.php . So i tried many times but always firefox gives redirection error. what must i write in the blanks? Sorry for my english.

Diablosblizz
There is a much easier way of doing this, using .htaccess. Here is the code that you'll want to put into your .htaccess file (if you don't have one create one)

Code:
redirect index.php /phpbb3/index.php
PTCpara
Diablosblizz wrote:
There is a much easier way of doing this, using .htaccess. Here is the code that you'll want to put into your .htaccess file (if you don't have one create one)

Code:
redirect index.php /phpbb3/index.php


Which directory must i put this .htaccess file?
Diablosblizz
You must put the .htaccess file in your public_html folder for it to work correctly. Good luck. Smile
DjMilez
Put this in the root index.php or html

Code:
<meta http-equiv='Refresh' content='0; URL=/phpbb3/index.php'/>



Simple redirect
PTCpara
Diablosblizz wrote:
You must put the .htaccess file in your public_html folder for it to work correctly. Good luck. Smile


I put it but now its giving error. Please take a look at it. Where am i doing wrong thing?

I created an .htaccess file and put it in public_html folder. I wrote "redirect index.php /phpbb3/index.php" and now i am getting this error:

Code:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@ptcpara.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


@DjMilez Thanks it worked but its not what i want Smile
Diablosblizz
Sorry, my mistake. Tested on my server and you were correct, there was a problem with the script. This should work perfectly fine now:

Code:
Redirect /index.php /phpbb3/index.php
Related topics
site theme
What's Your site About
Does anyone know how to get your site to appear higher ?
Site under construction?
the best driver site ever
Php-Nuke Site -- How likely is it going to be hacked?
Verify your site's design on a mac (Safari, IE, Mozilla)
MS Accepts Korean Site Attack
De quoi parlent vos sites?
Linking from a high page rank site
[GUIDE]Testing Out Your Site Without Uploading It
Sitescore - how good is your site?
Comment rendre son site connu ?
"site/page" DIFFERENT from "site/page/"?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.