| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Tue Jul 18, 2006 5:40 am Post subject: phpbb SEO rewrite mods and problem with Netfirms hosting |
|
|
hello
yesterday i installed phpbb for one of my friend
http://forum.persianspot.ca/
this site is for iranian in canada. my friend bought his webspace from netfirm company. i serched in support center and i found this sentence
| Quote: | II. Interference with an .htaccess file
If you have implemented .htaccess on your site, it may be interfering with the web page you are trying to load into your browser. Please either remove the .htaccess file or double check the .htaccess configurations to ensure that it doesn't contain any errors. Currently Netfirms only supports .htaccess the following directives:
AuthType
ErrorDocument
RewriteEngine
Redirect |
i used this .htaccess file
| Code: | # These three lines should only be added if not already done in the .htaccess
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# CATEGORIES
RewriteRule ^cat([0-9]+)\.html$ persia/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
# PROFILES
RewriteRule ^member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
#########################################################
# MX GG_SITEMAPS REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/02/22
########################################################
# phpBB
RewriteRule ^sitemaps.xml$ /persia/sitemap.php [L]
RewriteRule ^forum-sitemap-([0-9]+).xml$ /forum/sitemap.php?fid=$1 [L]
RewriteRule ^sitemap-forum.xml$ /forum/sitemap.php?forum [L]
# mxBB
RewriteRule ^mx-sitemap.xml$ /forum/sitemap.php?mx [L]
# KB
RewriteRule ^kb-sitemap-([0-9]+).xml$ /forum/sitemap.php?kbid=$1 [L]
RewriteRule ^sitemap-kbcat.xml$ /forum/sitemap.php?kbcat [L]
#########################################################
# END GG_SITEMAPS REWRITE RULES #
#########################################################
#########################################################
# MX SITEMAPS REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 2006/04/28
########################################################
RewriteRule ^sitemaps([0-9]+)\.html$ /forum/sitemaps.php?c=$1 [QSA,L]
RewriteRule ^sitemaps\.html$ /forum/sitemaps.php [QSA,L]
RewriteRule ^forum-map\.html$ /forum/sitemaps.php?fim [QSA,L]
RewriteRule ^forum-map([0-9]+)-([0-9]+)\.html$ /forum/sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^forum-map([0-9]+)\.html$ /forum/sitemaps.php?fmp=$1 [QSA,L]
#########################################################
# END SITEMAPS REWRITE RULES #
######################################################### |
this .htaccess caused error 500
acording to that sentence in support center, Options +FollowSymlinks is not supported by netfirms server configuration
i removed that part and forum starts to work
what is this part "Options +FollowSymlinks" ?
can removing this part make problem for the forum in the future ?
another thing, forum is very slow
thanks  |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Tue Jul 18, 2006 9:23 am Post subject: Re: phpbb SEO rewrite mods and problem with Netfirms hosting |
|
|
http://httpd.apache.org/docs/1.3/mod/core.html#options :
| Quote: |
Options directive
FollowSymLinks
The server will follow symbolic links in this directory.
Note: even though the server follows the symlink it does not change the path-name used to match against <Directory> sections.
Note: this option gets ignored if set inside a <Location> section. |
This option is not useful all the time, but, is under specific server settings and most of the time useless, but is a must in some.
As we can see, in some cases, it's not even accepted, and actually, this is as well a good test for hosting. The web-space you are talking about is restricting many options but it works in the end.
Any way, no problem at all getting rid of the option as long as it works.
My point releasing strict .htaccess is to provide first the fastest possible Reg-Ex and then, if needed, we can just open them a bit until it works.
Then, talking about the forum being slow, well I see a 0.7s index page load, so not to bad, but for sure not very fast with no public forum listed and two people online. But the actual page load can be longer because of the Internet connections, Iran is far from canada
One thing to check, have you chmod the cache/ folder for the sql cache ?
On some server this is needed for the file to actually be cached, just make sure the folder contain sql_ * and tpl_* files (from the xs mod).
And for the future, I bet your friend will have to upgrade is webs-pace when there will be more traffic.
Can use the hosting forum if needed
By the way have you checked the utf8 trick ? |
_________________ 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 |
|
 |
AmirAbbas phpBB SEO Team


Joined: 11 May 2006 Posts: 529 Location: IRAN
|
Posted: Wed Jul 19, 2006 7:47 am Post subject: Re: phpbb SEO rewrite mods and problem with Netfirms hosting |
|
|
thanks dcz
yes i checked cache folder and the premission of this folder is 777
there is lot of tpl and sql file cached in cache folder
something is strange with netfirms server
netfirms server in default form sets the premission of all folder on 777 ?!!
their servers is very restricted
and finally
i tested UTF-8 trick . i added reply to that post
thanks again |
_________________ چهار گوش - طراحی وب - مجله طراحی وب |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Jul 19, 2006 8:24 am Post subject: Re: phpbb SEO rewrite mods and problem with Netfirms hosting |
|
|
Yes, some shared hosting do give writing privilege to every files, as long as it is done locally, (usually).
And on most, the cache will work even though the cache/ folder is not chmod to 777, but still I observed that one some server it was faster to set the proper right even though it would work without, just like you where getting rid of an check or something by confirming you want to write in it.
Then for the UtF-8 trick, bad luck, you tried the trick just before I found it, at least I think I did it like ten minutes after you copied the first draft
++ |
_________________ 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 |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |