Seite 1 von 2

Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 25.10.2011 14:00
von HCA
Hi Community,

ich habe den Mod für das URL rewriting implementiert und das umschreiben der urls funktioniert auch.

Das Problem ist nun das ich wenn ich auf eine Kategorie oder auf einen Post klicke das ich eine 404 Error bekomme.

Ich habe mir die .htaccess im ACP erstellen lassen und diese verwendet aber keine Change. Nach versuchten Änderungen schlugen auch fehl.

Zur Zeit lasse ich das Forum unter folgender URL laufen: localhost/dev/board/

Vielleicht kennt sich jemand mit dem Mod aus und kann mi helfen.

Hier mal die htaccess

Code: Alles auswählen


# Lines That should already be in your .htacess
<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 lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
# RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
# REWRITE BASE
RewriteBase /dev/board/
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^localhost$ [NC]
# RewriteRule ^(.*)$ http://localhost/dev/board/$1 [QSA,L,R=301]

# DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
#####################################################
# PHPBB SEO REWRITE RULES ALL MODES
#####################################################
# 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 ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ viewforum.php?f=$2&start=$4 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
# PHPBB FILES ALL MODES
RewriteRule ^resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ download/file.php?id=$2&t=$1 [QSA,L,NC]
# PROFILES ALL MODES WITH ID
RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)\.html$ memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
# USER MESSAGES ALL MODES WITH ID
RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
# GROUPS ALL MODES
RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ memberlist.php?mode=group&g=$2&start=$4 [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]
# UNREAD POSTS
RewriteRule ^unreadposts(-([0-9]+))?\.html$ search.php?search_id=unreadposts&start=$2 [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 ALL MODES
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)(-([0-9]+))\.html$ viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9_-]+)\.html$ viewforum.php?forum_uri=$1 [QSA,L,NC]
# FIX RELATIVE PATHS : FILES
RewriteRule ^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ $1 [QSA,L,NC,R=301]
# FIX RELATIVE PATHS : IMAGES
RewriteRule ^.+/(styles/.*|images/.*)/$ $1 [QSA,L,NC,R=301]
# END PHPBB PAGES
#####################################################
Gruß
HCA

Re: Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 25.10.2011 15:07
von Balint
Hallo,

bei der Generierung der .htaccess gibt es erweiterte Funktionen - dort kann man angeben, dass man die .htaccess in das Forenverzeichnis legen möchte - mit den "normalen" Einstellungen legt man nämlich die vom MOD generierte Datei in den Webroot und nicht ins Forenverzeichnis.


Viele Grüße,
Bálint

Re: Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 25.10.2011 18:18
von HCA
wunderbar, nun funktioniert es.

Die f** in der URL bekommt man nicht weg oder?

Beispiel: /board/news-f1.html

Gru0
HCA

Re: Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 25.10.2011 18:42
von Balint
Hallo,

doch, hierzu muss man den Advanced-Modus aktivieren und irgendwo in den Einstellungen findet sich die die betreffende Option. Man kann sogar eigene Forennamen vergeben. Einfach aufmerksam die Funktionen durchgehen!


Viele Grüße,
Bálint

Re: Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 25.10.2011 19:25
von HCA
also mit den Einstellungen aber ich schon rumgetestet aber nichts gefunden.

Habe alle verfügbaren Funktionen "an" geschaltet bis auf 2:
Virtual Root:
If phpBB is installed in a sub folder (example phpBB3/), you can simulate a root install for rewritten links.

Example :
phpBB3/forum-title-fxx/topic-title-txx.html VS forum-title-fxx/topic-title-txx.html for a topic URL.

This can be handy to shorten URLs a bit, especially if you are using the "Virtual Folder" feature. UnRewritten links will continue to appear and work in the phpBB folder.

Please Note :
Using this option requires to use a home page for the forum index (like forum.html).
This option can change all your web site’s URLs almost too easily.
Starting to use it with an already indexed web site should thus be considered with as much care as when migrating and not too often.
So you’d better be decided to go for it or not.
Changing this option requires and .htaccess update.

und

Virtual Folder:
Allow to add the forum URL as a virtual folder in topic URLs.

Example :
forum-title-fxx/topic-title-txx.html VS topic-title-txx.html for a topic URL.

Please Note
The Virtual folder injection option can change all your web site’s URLs almost too easily.
Starting to use it with an already indexed web site should thus be considered with as much care as when migrating and not too often.
So you’d better be decided to go for it or not.
Changing this option requires and .htaccess update.

Re: Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 25.10.2011 20:39
von Balint
Hallo,

es müsste die Option "Forum ID Removing (optional)" sein.


Viele Grüße,
Bálint

Re: Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 25.10.2011 21:46
von Shorty1968
Hallo sorry habe mal eine Frage,gibt es zu dem MOD auch eine Deutsche Sprache?

Re: Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 25.10.2011 22:31
von Charlie_M
Was hat dir an der Antwort nicht gefallen?
=> viewtopic.php?f=87&t=218777

Nein, den Mod gibts nicht auf Deutsch, aber ist in besten französisch verfügbar :D

Re: Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 26.10.2011 01:56
von Shorty1968
Charlie_M hat geschrieben: Nein, den Mod gibts nicht auf Deutsch, aber ist in besten französisch verfügbar :D
Doch demnächst wenn ich sie selber übersetzt habe. :D :grin:

Re: Brauche Hilfe bei phpBB SEO Ultimate SEO URL v0.6.8 Mod

Verfasst: 26.10.2011 02:05
von WileCoyote
Shorty1968 hat geschrieben:
Charlie_M hat geschrieben: Nein, den Mod gibts nicht auf Deutsch, aber ist in besten französisch verfügbar :D
Doch demnächst wenn ich sie selber übersetzt habe. :D :grin:
Nachdem du scheinbar nicht belehrbar bist, sage ich es dir hier nochmal. Solltest du mit Problem die diese MOD betreffen hier im Forum ankommen, erwarte keinen Support (zumindest von mir nicht).