Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 04-04-2006, 06:33 AM
Chris1974's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 02-02-06
Location: Colorado
Posts: 109
iTrader: 0 / 0%
Coding Problem URL redirect

I have phpBB mods on my website. The one mod is a portal skin to make the index page look more like a portal rather than a BB.

The changes in the code I made replaced index.php with portal.php (as per instructions.) I then had to change the .htaccess to accept this.

Problem is now. The other two domains on my server account are affected by this because the .htaccess change was in the root directory. I tried changing the .htaccess per domain and it's not working.

If I type in /index.php on my other two websites they are viewed fine. Unfortunatly this is the only way to view them.

How would/can I fix this?? I guess their is a special way to change the .htaccess on my two websites to get this working, but I'm at a loss here.
__________________
Submit a Tutorial
 
Reply With Quote
  #2 (permalink)  
Old 04-04-2006, 07:36 AM
Contributing Member
Latest Blog:
None

 
Join Date: 07-30-05
Posts: 247
iTrader: 0 / 0%
So if I understand this.... you have:

www.abc.com/portal.php and in the htaccess you want to type in:
www.abc.com and auto display the portal.php page??? (default home page)

You changed the: "DirectoryIndex portal.php" ?????
 
Reply With Quote
  #3 (permalink)  
Old 04-04-2006, 07:40 AM
Immo's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 03-26-04
Location: Warrington, England
Posts: 1,540
iTrader: 0 / 0%
If you set the htaccess file to redirect like this:

/ portal.php


Change it to

/index.php portal.php


That should fix it.
__________________
I have become death, destroyer of worlds.
 
Reply With Quote
  #4 (permalink)  
Old 04-04-2006, 07:44 AM
Chris1974's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 02-02-06
Location: Colorado
Posts: 109
iTrader: 0 / 0%
Quote:
Originally Posted by Immo
If you set the htaccess file to redirect like this:

/ portal.php


Change it to

/index.php portal.php


That should fix it.
Worked like a charm, I think it had to do with the backslash

Thank You
__________________
Submit a Tutorial
 
Reply With Quote
  #5 (permalink)  
Old 04-04-2006, 07:48 AM
Immo's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 03-26-04
Location: Warrington, England
Posts: 1,540
iTrader: 0 / 0%
np was an educated guess, im by no means a master of .htaccess files

glad its working.
__________________
I have become death, destroyer of worlds.
 
Reply With Quote
  #6 (permalink)  
Old 04-04-2006, 07:49 AM
Mrblogs's Avatar
Contributing Member
 
Join Date: 03-29-06
Posts: 395
iTrader: 0 / 0%
Just don't create an index.php file in the portal.php directory or the website will show the index.php instead.
__________________
Website Designers in Wolverhampton

Pub Index
PubIndex.co.uk - A comprehensive Pub Guide for the United Kingdom
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding: Alignment Problem in Navbar soultrader Coding Forum 0 11-17-2006 06:05 AM
Problem with Coding soultrader Coding Forum 32 11-15-2006 04:28 AM
Template Coding Problem Sryinex Web Design Lobby 1 09-12-2006 02:54 PM
session problem with redirect I like pie Coding Forum 14 08-29-2006 08:25 AM
Redirect Problem Cibok Web Design Lobby 1 11-29-2003 02:29 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 06:30 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.