| :: |
| Author |
Message |
StefaniaCastelli
Joined: 31 May 2008 Posts: 5
|
Posted: Sat May 31, 2008 4:26 pm Post subject: Redirect 301 stops phpbb_seo... |
|
|
Hello,
I apologize in advance if somewhere here there's already a post on this.
Before going further with the Blue Host helpdesk, I would like to ask the forum if there are known issues with addon domains and PHPBB3 simple.
I mean that I installed PHPBB3.01 on the http://stefania.us/ippc/forum and then updated with the 0.42 version of mod_rewrite simple.
I followed all the steps and copied the generated .htaccess file from php_seo/cache folder to the root folder
It doesn't work.
The only thing that is different from a normal installation is that there's an addon domain that points to that directory http://www.ippc.cc/forum.
Can this affect the .htaccess file configuration?
Another info. On http://stefania.us/ippc there's joomla installed. From what I see the mod_rewrite function works properly so I think that BlueHost apache servers are set correctly.
Any help is welcome.
Stefania
Ok.... one step beyond.
This rewrite rule for joomla seemes to work:
##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
# RewriteBase /
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
I saw in another post here, that it should be better to place the .htaccess file on the root folder.
But on Bluehost I have various .htaccess (addon domains features simulate multiple servers on the same host).
even on the addon domain www.ippc.cc Joomla has got its own .htaccess on the root folder.
Can I copy and paste the rules present in the .htaccess of phpbb (located on ippc.cc/forum) to the .htaccess on the root (generated by joomla)?
Keep on trying...
Thank you |
Last edited by StefaniaCastelli on Mon Jun 02, 2008 12:42 pm; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
StefaniaCastelli
Joined: 31 May 2008 Posts: 5
|
Posted: Sun Jun 01, 2008 11:15 am Post subject: Solved the 404, born a redirecting issue.... |
|
|
It was a simple matter pointing the rewritebase to the right phpbb folder.
Now's the time to solve a further issue.
http://www.ippc.cc/forum is an addon domain folder its real
path is http://www.stefania.us/ippc/forum
The issue is that every rewrite action of phpbb_seo transform the URL in -http://www.stefania.us/ippc/xxxxx that's exactly what I do have to avoid
I tried adding a line with redirect instructions in the .htaccess file
| Code: | | redirect /ippc/forum/ http://www.ippc.cc/forum/ |
It works formally but generates a 404.
So it can be so easy.
Keep on studying.
In the meanwhile, any suggestion, as ever, is welcome
Stefania |
|
|
| Back to top |
|
 |
StefaniaCastelli
Joined: 31 May 2008 Posts: 5
|
Posted: Mon Jun 02, 2008 12:40 pm Post subject: Now redirection works but phpbb_seo stops |
|
|
It's very annoying.
I placed a redirect 301 line on .htaccess.
It perfectly redirects but my phpbb start to generate dynamic links as phpbb_seo script it is not installed.
If I remove the "redirect 301" phpbb_seo works but the urls generated, show my main account path.
Is it probably an Apache issue that must be handled on Apache server side (BlueHost).
The story continues....
Stefania |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Mon Jun 02, 2008 1:04 pm Post subject: Re: Solved the 404, born a redirecting issue.... |
|
|
| StefaniaCastelli wrote: |
The issue is that every rewrite action of phpbb_seo transform the URL in -http://www.stefania.us/ippc/xxxxx that's exactly what I do have to avoid
|
Sorry for delay.
So, it's only that your phpBB config must be using "www.stefania.us" as the server domain, the phpBB SEO mod retrieve the domain from the phpBB config, so it must be set properly, as well as the script path.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
StefaniaCastelli
Joined: 31 May 2008 Posts: 5
|
Posted: Tue Jun 03, 2008 3:43 pm Post subject: Re: Redirect 301 stops phpbb_seo... |
|
|
Thank you for your reply,
incredibly I installed phpBB in the wrong directory as you correctly pointed out.
Now everything's fine.
I still have problem with the last "extreme" feature of phpBB_seo simple script: the one the hide, on URL, the subfolder where is installed.
That one keeps on generating a 404.
I take advantage of your kindness, asking you if it is normal that a language pack (Italian), modify only the user Side Board and not the Admin interface.
This because all the portal is for an Italian Public Institution not so skilled in foreign languages.
I tried to search on the opportune forum, but, curiously, there's no indications about this.
On the contrary, it seems that only the User Interface can be localized.
Ah....one doubt. I installed the Italian module after the phpBB_seo script. Surely I have overwritten some config files. Did I?
Thanks again
Stefania |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Jun 04, 2008 8:21 am Post subject: Re: Redirect 301 stops phpbb_seo... |
|
|
| StefaniaCastelli wrote: |
I still have problem with the last "extreme" feature of phpBB_seo simple script: the one the hide, on URL, the subfolder where is installed. |
You must be talking about the virtual root option. When you activate it, you must generate a new .htaccess which in this case must be located in the domain's root (not in the forum dir).
| StefaniaCastelli wrote: |
I take advantage of your kindness, asking you if it is normal that a language pack (Italian), modify only the user Side Board and not the Admin interface. |
Well I never tested the Italian pack, but I assume that the Italian translators did translate the admin interface too. Unless you are talking about the specific phpBB SEO ACP, which for now is only translated into French and English. This implies that you should use the English (or French) version within your Italian pack.
The mod rewrite does not add language code change in the public part of the forum, but dos add few lines in the en/acp/common.php file which should thus be added to the Italian pack too.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
StefaniaCastelli
Joined: 31 May 2008 Posts: 5
|
Posted: Wed Jun 04, 2008 8:34 am Post subject: Re: Redirect 301 stops phpbb_seo... |
|
|
DCZ said:
| Quote: | | You must be talking about the virtual root option. When you activate it, you must generate a new .htaccess which in this case must be located in the domain's root (not in the forum dir). |
This makes a lot of sense!
I only have to make a merge with another .htaccess I already have in the root folder (with Joomla's mod_rewrite instructions)
Thank you
Stefania |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
|
|