| |
|
| :: |
| Author |
Message |
the0ne
Joined: 25 Oct 2006 Posts: 14
|
Posted: Wed Oct 25, 2006 9:59 am Post subject: htaccess Forum Map problem |
|
|
I am using mod-seo_urls_v2 for rewrite and when i click on Forum Map it takes me to this page -http://desifriends.org/sitemaps,fim.html which gives a 404 message but this page is working -http://desifriends.org/sitemaps.php?fim
my htaccess is
| Code: | DirectoryIndex index.html index.htm portal.php index.php
RewriteEngine on
RewriteRule ^sitemaps([0-9]+)\.html$ /sitemaps.php?c=$1 [QSA,L]
RewriteRule ^sitemaps\.html$ /sitemaps.php [QSA,L]
RewriteRule ^forum-m\ap\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^forum-m\ap-([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^forum-m\ap-([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L]
RewriteRule ^sitemaps.xml$ /phpBB/sitemap.php [L]
RewriteRule ^mx-sitemap.xml$ /phpBB/sitemap.php?mx [L]
RewriteRule ^forum-sitemap-([0-9]+).xml$ /phpBB/sitemap.php?fid=$1 [L]
RewriteRule ^kb-sitemap-([0-9]+).xml$ /phpBB/sitemap.php?kbid=$1 [L]
RewriteRule ^sitemap-forum.xml$ /phpBB/sitemap.php?forum [L]
RewriteRule ^sitemap-kbcat.xml$ /phpBB/sitemap.php?kbcat [L]
RewriteRule !\.html$ - [L]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+)\.html$ /viewtopic.php?$1=$2 [L]
RewriteRule ^[a-z0-9-]+-f([0-9]+)\.html$ /viewforum.php?f=$1 [L]
RewriteRule ^[a-z0-9-]+-u([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [L]
RewriteRule ^([a-zA-Z0-9_]+),([^/,]+),([^/,]*)([^/]*\.html)$ $1$4?$2=$3 [QSA,N]
RewriteRule ^[a-z0-9-]+-([pt])([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewtopic$5?$1=$2&$3=$4 [QSA,N]
RewriteRule ^[a-z0-9-]+-f([0-9]+),([^/,]+),([^/,]*)([^/]*\.html)$ viewforum$4?f=$1&$2=$3 [QSA,N]
RewriteRule ^([a-zA-Z0-9_]+)\.html$ /$1.php [L] |
|
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Oct 25, 2006 10:58 am Post subject: Re: htaccess Forum Map problem |
|
|
And welcome
Well, this is the problem with SEO URL V2, every URL going through append_sid is rewritten. I myself decided to only rewrite the link we want to instead.
This does not cause problems for mx Google sitemaps, as the mod builds all URL itself, but will with mx sitemaps.
Besides, the mod is for now outputting duplicates like : -http://desifriends.org/viewtopic,t,601.html for the topic links.
I think you could fix this by searching among all mx sitemaps files in includes/ for $seo_forum_name and replace it with $forum_name and $seo_topic_name with $topic_title.
For the rewriterules, you could try :
| Code: | RewriteRule ^sitemaps,fim.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^sitemaps,fmp,([0-9]+),start,([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^sitemaps,fmp,([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L] |
Instead of :
| Code: | RewriteRule ^forum-m\ap\.html$ /sitemaps.php?fim [QSA,L]
RewriteRule ^forum-m\ap-([0-9]+)-([0-9]+)\.html$ /sitemaps.php?fmp=$1&start=$2 [QSA,L]
RewriteRule ^forum-m\ap-([0-9]+)\.html$ /sitemaps.php?fmp=$1 [QSA,L] |
And do not turn mod rewrite on in mx sitemaps ACP.
You could also consider migrating, which is now doable without taking any risk thanks to the Zero duplicate
++ |
_________________ 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 |
|
 |
the0ne
Joined: 25 Oct 2006 Posts: 14
|
Posted: Wed Oct 25, 2006 12:05 pm Post subject: Re: htaccess Forum Map problem |
|
|
thanks 4 the quick response , i really appreciate it
I will try it and let u know how it went. and thanks 4 releasing such a great mod , too bad 4 me i juz came to know of it  |
|
|
| Back to top |
|
 |
the0ne
Joined: 25 Oct 2006 Posts: 14
|
Posted: Wed Oct 25, 2006 12:41 pm Post subject: Re: htaccess Forum Map problem |
|
|
now when i select a topic say Feedback & Bug Report
it shows the link as | Code: | | feedback-und-bug-report-http://desifriends.org/,f,12.html |
i tried this | Quote: | | $seo_forum_name and replace it with $forum_name and $seo_topic_name with $topic_title. |
site map can b accessed here : -http://desifriends.org/sitemaps.html
thanks |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
the0ne
Joined: 25 Oct 2006 Posts: 14
|
Posted: Wed Oct 25, 2006 3:15 pm Post subject: Re: htaccess Forum Map problem |
|
|
| Yes it is turned off |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Wed Oct 25, 2006 4:19 pm Post subject: Re: htaccess Forum Map problem |
|
|
mm, could be the globals in function last_topics() (includes/Sitemaps_Functions.php), have you replaced the $seo_forum_name, $seo_topic_name in the global list :
| Code: | | global $db, $template, $lang, $images, $userdata, $phpbb_url, $board_config, $Sitemaps, $phpEx, $seo_forum_name, $seo_topic_name; |
to :
| Code: | | global $db, $template, $lang, $images, $userdata, $phpbb_url, $board_config, $Sitemaps, $phpEx, $forum_name, $topic_title; |
and the following occurrences in the file.
++ |
_________________ 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 |
|
 |
the0ne
Joined: 25 Oct 2006 Posts: 14
|
Posted: Thu Oct 26, 2006 5:17 am Post subject: Re: htaccess Forum Map problem |
|
|
yes its already replaced  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Thu Oct 26, 2006 8:18 am Post subject: Re: htaccess Forum Map problem |
|
|
Oh well, I guess it's not that simple then.
I'll take a look at it, but this is the problem with SEO URL V2, that's why I introduced additional variables to grab titles, so that I am sure they do pass through all the process.
Re-using $forum_name and $topic_title gives good results for phpBB vanilla, but this is quite an other matter when playing with mods and modules.
Have you installed mx Google sitemaps ?
This one is working with SEO urls
++ |
_________________ 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 |
|
 |
the0ne
Joined: 25 Oct 2006 Posts: 14
|
Posted: Thu Oct 26, 2006 1:09 pm Post subject: Re: htaccess Forum Map problem |
|
|
| i have mx_ggsitemaps_v1.0.0RC2 and mx_Sitemaps_V_0.0.1 I tried the The phpBB SEO Mixed mod Rewrite after removing the SEO rewrite thingi but the pages were giving 404 so i removed it. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Thu Oct 26, 2006 2:10 pm Post subject: Re: htaccess Forum Map problem |
|
|
Oh, the 404 must have come from the .htaccess.
Nothing to worry about since we know mod rewrite is available on your server.
Must be some paths, I did not noticed at first, but there are some phpBB/ to get rid of in the .htaccess you posted as your forum does not seem to be installed in the phpBB/ folder.
You should try the .htaccess provided for a root installation, it should work right away.
If you decide to migrate, please tell me so we can set up something to redirect everything to the new URLs.
And mx_ggsitemaps_v1.0.0RC2 did not come with the SEO URL add on, was added in 1.0.1, so you should upgrade, it's easy.
Because for now, you're outputting unrewritten links : -http://desifriends.org/sitemap.php?fid=56
++ |
_________________ 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 |
|
 |
the0ne
Joined: 25 Oct 2006 Posts: 14
|
Posted: Thu Oct 26, 2006 11:48 pm Post subject: Re: htaccess Forum Map problem |
|
|
| Quote: | Must be some paths, I did not noticed at first, but there are some phpBB/ to get rid of in the .htaccess you posted as your forum does not seem to be installed in the phpBB/ folder.
You should try the .htaccess provided for a root installation, it should work right away. |
I didnt try that. I dont mind migrating as long as it works
So what should i do
- Uninstall mod-seo_urls_v2
- Update mx_ggsitemaps_v1.0.0RC2 to 1.0.1
- Add phpBB SEO Mixed mod Rewrite
- should i do any thing about Zero duplicate
is there any order in which i have to install it or is it allrt in any order |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
the0ne
Joined: 25 Oct 2006 Posts: 14
|
Posted: Sat Oct 28, 2006 6:36 am Post subject: Re: htaccess Forum Map problem |
|
|
| sounds good ... i will start a new thread |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|