phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Non-Typical Domain -> 404

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
2go



Joined: 03 Jun 2008
Posts: 2

Non-Typical Domain -> 404Posted: Tue Jun 03, 2008 8:56 pm    Post subject: Non-Typical Domain -> 404

Hi,

I installed the great "Advanced SEO URL" product, but I only get 404 erros. I think it's a htaccess problem. mod rewrite is enabled 100%.

My domain has this format:

-http://server1.hosting.net/domain.com/

Important: domain.com is not a folder on my webspace, it's just part of the domain. The URL above directly opens my phpbb forum. The files are in the www folder on my webspace.

So -http://server1.hosting.net/domain.com/ points to [...]/www/ on my webspace.

in [...]/www/ (so in the root of my domain) I have the default .htaccess file like below, but I get 404. I tried some basic changes, like leaving / or changing rewritebase to /domain.com/ but nothing worked. What else could I try?

Thank you very much!

.htaccess:

Code:
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
Options +FollowSymlinks
# 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 WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /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$ /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$ /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$ /viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^group([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /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_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Non-Typical Domain -> 404Posted: Wed Jun 04, 2008 9:02 am    Post subject: Re: Non-Typical Domain -> 404

You could try to use
Code:
RewriteBase /domain.com/


But maybe the easier would be to make sure mod_rewrite is available and how (with which settings for slashes and path) with a simple test.

++

_________________
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
Visit poster's website
2go



Joined: 03 Jun 2008
Posts: 2

Non-Typical Domain -> 404Posted: Thu Jun 05, 2008 5:27 pm    Post subject: Re: Non-Typical Domain -> 404

Hi dcz,

I have now switched to a normal domain like -www.domain.com and now a bit works. I think that the problem now is, the feature that I enabled to remove IDs from the links like the f= ID for the section.

For example:

-http://www.domain.com/the-team.html .. works, gets redirected to memberlist.php!

-http://www.domain.com/forum1/ (forum1 = name of a forum) does NOT work.. As mentioned before, I think that it's not working because the f= info is not stored in this link format, however your script seems to support this, since I enabled this option in control panel. So what can be wrong?

Thanks
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3477

Non-Typical Domain -> 404Posted: Fri Jun 06, 2008 8:18 am    Post subject: Re: Non-Typical Domain -> 404

2go wrote:

-http://www.domain.com/forum1/ (forum1 = name of a forum) does NOT work.. As mentioned before, I think that it's not working because the f= info is not stored in this link format, however your script seems to support this, since I enabled this option in control panel. So what can be wrong?


There is no need to keep the ID in forum ID removing mode : http://phpbb3.phpbb-seo.net/demo-en/

What do you mean by this :
2go wrote:
-http://www.domain.com/the-team.html .. works, gets redirected to memberlist.php!


Do you see the team page or not ?

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: