| :: |
| Author |
Message |
guyinoz
Joined: 09 Jun 2006 Posts: 7
|
Posted: Fri Jun 09, 2006 12:20 pm Post subject: Mixed mod Rewrite V 0.0.1 - phpbb V2.0.2.1 - 404 errors? |
|
|
I've double checked the Mod and I've also double checked the Cyber alien Mod too. All seems right.
Mod_rewrite is enabled on server.
To see the problem here is the URL (please remove XXX)
XXXhttp://www.wager2win.co.uk/casino_forum/
As you can see all URL's are converted but as soon as you click on one they pull my custom 404 page.
Any idea as to what the problem could be?
Cheers
PS here is the .htaccess
| Code: |
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^phpbb/.+/([^/]+\.html)$ /phpbb/index.php [R=301,L]
RewriteRule ^phpbb/.+-vc([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L]
RewriteRule ^phpbb/.+-vf([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^phpbb/.+-vf([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L]
RewriteRule ^phpbb/topic([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^phpbb/topic([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L]
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L]
RewriteRule ^phpbb/member([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L]
|
|
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Fri Jun 09, 2006 12:33 pm Post subject: Re: Mixed mod Rewrite V 0.0.1 - phpbb V2.0.2.1 - 404 errors? |
|
|
all right, very simple :
| Quote: | #
# phpBB is installed in a sud Folder :
#-----[ ADD ]------------------------------------------
#
# According to the specific hoster you are using, you might have to get rid of the "/" at the beginning of "phpbb/"
# Make sure to change phpbb/ with the actual folder name where phpBB is installed |
So here you should just put the .htaccess at the server's root level and change " phpbb" with "casino_forum".
By the way, "casino-forum" would be better to use  |
_________________ 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 |
|
 |
guyinoz
Joined: 09 Jun 2006 Posts: 7
|
Posted: Fri Jun 09, 2006 12:43 pm Post subject: Re: Mixed mod Rewrite V 0.0.1 - phpbb V2.0.2.1 - 404 errors? |
|
|
Hi dcz,
This is why one should never code when tired I miss things.
| Quote: |
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^casino_forum/.+/([^/]+\.html)$ /casino_forum/index.php [R=301,L]
RewriteRule ^casino_forum/.+-vc([0-9]+)\.html$ /casino_forum/index.php?c=$1 [QSA,L]
RewriteRule ^casino_forum/.+-vf([0-9]+)-([0-9]+)\.html$ /casino_forum/viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^casino_forum/.+-vf([0-9]+)\.html$ /casino_forum/viewforum.php?f=$1 [QSA,L]
RewriteRule ^casino_forum/topic([0-9]+)-([0-9]+)\.html$ /casino_forum/viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^casino_forum/topic([0-9]+)\.html$ /casino_forum/viewtopic.php?t=$1 [QSA,L]
RewriteRule ^casino_forum/post([0-9]+)\.html$ /casino_forum/viewtopic.php?p=$1 [QSA,L]
RewriteRule ^casino_forum/member([0-9]+)\.html$ /casino_forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
|
I've fixed things up but still not working?
Anyway ideas?
Cheers |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
guyinoz
Joined: 09 Jun 2006 Posts: 7
|
Posted: Fri Jun 09, 2006 1:02 pm Post subject: Re: Mixed mod Rewrite V 0.0.1 - phpbb V2.0.2.1 - 404 errors? |
|
|
Yes my host has mod_rewrite enabled. But doubled checked that with php info command on root
Are you talking root level or root level of sub folder?
I've tried in both btw. Well not with updated .htaccess as you've instructed above.
I've removed RewriteBase /
But it produces a 500 internal error.
I'm a bit unsure exactly which "/" you are telling me to remove?
| Quote: |
RewriteRule ^casino_forum/.+/([^/]+\.html)$ /casino_forum/index.php [R=301,L]
|
or this one?
| Quote: |
RewriteRule ^casino_forum/.+/([^/]+\.html)$ /casino_forum/index.php [R=301,L]
|
Cheers |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Fri Jun 09, 2006 1:11 pm Post subject: Re: Mixed mod Rewrite V 0.0.1 - phpbb V2.0.2.1 - 404 errors? |
|
|
This one :
| Quote: |
RewriteRule ^casino_forum/.+/([^/]+\.html)$ /casino_forum/index.php [R=301,L]
|
but do not forget to change "casino_forum" with "casino-forum" as it seems you changed your folder's name (on your home's link as well )
Then, put those rewriterules in the main domain's root (usually www/) and it should work.
If you already have some rewriterule in your root's .htaccess, just put the one from this mod at the end of it, without repeating "rewrite engine on" etc ... on as said in the install.
In the end you will also have to take care of the www prefix issue.
And why not go further with mx Google sitemaps and mx Sitemaps  |
_________________ 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 |
|
 |
guyinoz
Joined: 09 Jun 2006 Posts: 7
|
Posted: Fri Jun 09, 2006 1:27 pm Post subject: Re: Mixed mod Rewrite V 0.0.1 - phpbb V2.0.2.1 - 404 errors? |
|
|
dcz,
Ok done all that but alas still not working
I really appreciate your help on this!
I might leave it for tonight and grab some rest then hit it with a clear head. I'll go baack to scratch and check code again...The try again.
If all else fails I post again...If it works I'll post and let you know
Cheers |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
guyinoz
Joined: 09 Jun 2006 Posts: 7
|
Posted: Fri Jun 09, 2006 2:40 pm Post subject: Re: Mixed mod Rewrite V 0.0.1 - phpbb V2.0.2.1 - 404 errors? |
|
|
| Quote: |
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^casino_forum/.+/([^/]+\.html)$ casino_forum/index.php [R=301,L]
RewriteRule ^casino_forum/.+-vc([0-9]+)\.html$ casino_forum/index.php?c=$1 [QSA,L]
RewriteRule ^casino_forum/.+-vf([0-9]+)-([0-9]+)\.html$ casino_forum/viewforum.php?f=$1&start=$2 [QSA,L]
RewriteRule ^casino_forum/.+-vf([0-9]+)\.html$ casino_forum/viewforum.php?f=$1 [QSA,L]
RewriteRule ^casino_forum/topic([0-9]+)-([0-9]+)\.html$ casino_forum/viewtopic.php?t=$1&start=$2 [QSA,L]
RewriteRule ^casino_forum/topic([0-9]+)\.html$ casino_forum/viewtopic.php?t=$1 [QSA,L]
RewriteRule ^casino_forum/post([0-9]+)\.html$ casino_forum/viewtopic.php?p=$1 [QSA,L]
RewriteRule ^casino_forum/member([0-9]+)\.html$ casino_forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
ErrorDocument 404 XXXhttp://www.wager2win.co.uk/custom_page.html
|
(XXX added here so not to get the URL indexed - but in file not like this with XXX).
Cheers |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
guyinoz
Joined: 09 Jun 2006 Posts: 7
|
Posted: Sat Jun 10, 2006 4:33 am Post subject: Re: Mixed mod Rewrite V 0.0.1 - phpbb V2.0.2.1 - 404 errors? |
|
|
Hi dcz,
Now I've had some much need rest I've gone back in a spotted some errors. In regards to the casino_forum I did change this to casino-forum, however, now I've realised that I've got around 50+ pages in total 80+ links to alter to change this to casino-forum so I've opted to leave it as is.
I've used underscore many times before and it doesn't seem to affect my ratings. In fact I've got about 10 pages that hold a PR6 that are full of underscores.
Anyways, I've managed to get it running now all is working fine, thanks.
I'll add a link back to you guys on the footer today sometime. Now I've got to customize the template and match it to my main site.
Thanks again for your help dcz
Cheers |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
guyinoz
Joined: 09 Jun 2006 Posts: 7
|
Posted: Sat Jun 10, 2006 10:30 am Post subject: Re: Mixed mod Rewrite V 0.0.1 - phpbb V2.0.2.1 - 404 errors? |
|
|
dcz,
Thanks for the extra heads up on that
Guess I could do that with any outdate URL I had, yes?
I ask as I've just changed back from nuke to generic static html.
I've got a heap of old urls like php?=Review and so out there. This seems like a good way to address these issues and not just using a custom 404 page.
Cheers |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

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