| :: |
| Author |
Message |
fabiomaticus
Joined: 06 Jun 2007 Posts: 48 Location: Taranto - Italy
|
Posted: Wed Feb 13, 2008 2:08 pm Post subject: Redirect to index.php of portal |
|
|
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? |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 48 Location: Taranto - Italy
|
Posted: Wed Feb 13, 2008 10:09 pm Post subject: Re: Redirect to index.php of portal |
|
|
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. |
|
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 48 Location: Taranto - Italy
|
Posted: Fri Feb 15, 2008 10:57 pm Post subject: Re: Redirect to index.php of portal |
|
|
| Please.... |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Sat Feb 16, 2008 9:45 am Post subject: Re: Redirect to index.php of portal |
|
|
| 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 ? |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 48 Location: Taranto - Italy
|
Posted: Sat Feb 16, 2008 11:11 pm Post subject: Re: Redirect to index.php of portal |
|
|
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. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Sun Feb 17, 2008 2:42 pm Post subject: Re: Redirect to index.php of portal |
|
|
| 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). |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 48 Location: Taranto - Italy
|
Posted: Tue Feb 19, 2008 11:12 pm Post subject: Re: Redirect to index.php of portal |
|
|
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 |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Thu Feb 21, 2008 10:39 am Post subject: Re: Redirect to index.php of portal |
|
|
| 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. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 48 Location: Taranto - Italy
|
Posted: Thu Feb 21, 2008 2:51 pm Post subject: Re: Redirect to index.php of portal |
|
|
I will rename index.php (mkportal) in the portal.php
This is my .htaccess
| Code: |
# 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... |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Thu Feb 21, 2008 9:14 pm Post subject: Re: Redirect to index.php of portal |
|
|
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. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
fabiomaticus
Joined: 06 Jun 2007 Posts: 48 Location: Taranto - Italy
|
Posted: Wed Mar 05, 2008 9:58 pm Post subject: Re: Redirect to index.php of portal |
|
|
I rename index.php (root) in portal.php
and this is my .htaccess
| Quote: | # 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
#####################################################
|
|
|
|
| Back to top |
|
 |
|
|