Redirect to index.php of portal

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators


Redirect to index.php of portal

Postby fabiomaticus » Wed Feb 13, 2008 2:08 pm

This in my root:
- folder "forum" (phpbb3)
- folder mkportal
- index.php (mkportal)

How to redirect "Index" to index.php mkportal and not index.php forum?
fabiomaticus
PR0
PR0
 
Posts: 51
Joined: Wed Jun 06, 2007 11:46 am
Location: Taranto - Italy

Advertisement

Postby SeO » Wed Feb 13, 2008 6:05 pm

You mean you have :

example.com/forum/index.php for phpBB3 and example.com/mkportal/index.php ?

What is occurring exactly ?
Or do you only want to extend redirection support for the portal ?
SeO
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 5527
Joined: Wed Mar 15, 2006 9:41 pm

Postby fabiomaticus » Wed Feb 13, 2008 10:09 pm

Before mod rewrite installation, i have forum index and site index redirect to index.php on the root.

After mod rewrite installation, i have forum index and site index (all redirect to index) redirect to index phpbb3.

I will have redirect to index.php to my root.
fabiomaticus
PR0
PR0
 
Posts: 51
Joined: Wed Jun 06, 2007 11:46 am
Location: Taranto - Italy

Postby fabiomaticus » Fri Feb 15, 2008 10:57 pm

Please....
fabiomaticus
PR0
PR0
 
Posts: 51
Joined: Wed Jun 06, 2007 11:46 am
Location: Taranto - Italy

Postby SeO » Sat Feb 16, 2008 9:45 am

SeO wrote:You mean you have :

example.com/forum/index.php for phpBB3 and example.com/mkportal/index.php ?

What is occurring exactly ?
Or do you only want to extend redirection support for the portal ?


I need to understand, please answer the questions.

Could you post a link to your site ?
SeO
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 5527
Joined: Wed Mar 15, 2006 9:41 pm

Postby fabiomaticus » Sat Feb 16, 2008 11:11 pm

My root:
- folder "forum" (phpbb3)
- folder mkportal
- index.php (mkportal)

When i click -www.mysite.it it used index.php (mkportal).
When i login to my portal, it is redirect to index.php (mkportal).

After mod rewrite installation, i click -www.mysite.it and after login it redirect to index.php folder forum, not to index.php of mkportal.
fabiomaticus
PR0
PR0
 
Posts: 51
Joined: Wed Jun 06, 2007 11:46 am
Location: Taranto - Italy

Postby SeO » Sun Feb 17, 2008 2:42 pm

SeO wrote:Could you post a link to your site ?


anyway, is it the one from your profile ? -http://www.500forum.it/ ?

there is some confusion between the portal's index.php and phpBB one, could be because both links are passing through the append_sid() function.
This kind of cases are a bit problematic, because the code needs all file that could be rewritten to have a different name, since it's not this simple to filter cases between files with the same name.

It's only when you login ?

If so, we should be able to manage a quick fix. If not, renaming mkportal's index.php to something else maybe be the easiest solution (and would not change your url if you play with the directoryindex in the .htaccess a bit).
SeO
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 5527
Joined: Wed Mar 15, 2006 9:41 pm

Postby fabiomaticus » Tue Feb 19, 2008 11:12 pm

Hi,
this is my new site: www.500forum.it

After you login, you redirect of index forum and not index portal.

Nickname: oldforum
password: 500
fabiomaticus
PR0
PR0
 
Posts: 51
Joined: Wed Jun 06, 2007 11:46 am
Location: Taranto - Italy

Postby SeO » Thu Feb 21, 2008 10:39 am

SeO wrote:renaming mkportal's index.php to something else maybe be the easiest solution (and would not change your url if you play with the directoryindex in the .htaccess a bit).


How hard would that be ?
Because doing so would allow you to as well url rewrite the portal index.
SeO
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 5527
Joined: Wed Mar 15, 2006 9:41 pm

Postby fabiomaticus » Thu Feb 21, 2008 2:51 pm

I will rename index.php (mkportal) in the portal.php
This is my .htaccess
Code: Select all
# You may need to un-comment the following line
# Options +FollowSymlinks

directoryindex portal.php

# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^forum\.html$ /forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^messages([0-9]+)(-([0-9]+))?\.html$ /forum/search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^group([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+(-([0-9]+))?\.html$ /forum/viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################



But tha module mkportal don't fuction!!!
Gallery don't fuction...
fabiomaticus
PR0
PR0
 
Posts: 51
Joined: Wed Jun 06, 2007 11:46 am
Location: Taranto - Italy

Postby SeO » Thu Feb 21, 2008 9:14 pm

Well, of course only renaming the file will not be enough, but it's pretty possible that you have only few file to edit using index.php in the mkportal package to update the links for examples.

It's as well possible that this possibility was already commented in the mkportal support forum. There is a mod for phpBB3 to rename the index, so, it's possible that you'll find one for mkportal.
SeO
Administrateur - Site Admin
Administrateur - Site Admin
 
Posts: 5527
Joined: Wed Mar 15, 2006 9:41 pm

Postby fabiomaticus » Wed Mar 05, 2008 9:58 pm

I rename index.php (root) in portal.php
and this is my .htaccess
# You may need to un-comment the following line
# Options +FollowSymlinks
directoryindex portal.php
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
RewriteRule ^index\.php$ portal.php [L]

# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX
RewriteRule ^forum\.html$ /forum/index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /forum/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /forum/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)\.html$ /forum/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^messages([0-9]+)(-([0-9]+))?\.html$ /forum/search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^group([0-9]+)(-([0-9]+))?\.html$ /forum/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /forum/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+(-([0-9]+))?\.html$ /forum/viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
fabiomaticus
PR0
PR0
 
Posts: 51
Joined: Wed Jun 06, 2007 11:46 am
Location: Taranto - Italy


Return to Advanced SEO URL




  • Similar topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests