| :: |
| Author |
Message |
dmoore
Joined: 18 Feb 2007 Posts: 1
|
Posted: Sun Feb 18, 2007 12:58 am Post subject: Mod rewrite is working on everything but viewtopic |
|
|
I double checked the steps I did for the viewtopic.php changes in the instructions, but it still doesn't work. When I view a post or thread, the url is still
-http://www.domain.com/forum/viewtopic.php?t=2
Any advice on where to look?
Thanks in advance!
Derek |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
conceptcrew
Joined: 02 Sep 2007 Posts: 7
|
Posted: Sun Sep 02, 2007 8:12 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
I am having the same issue with the mod not rewriting the viewtopic.
test site: www.reptilerescueleague.com
i have double checked the edits and all is right.
I have used the .htaccess file included with the mod and everything else works.
Any assistance would be greatly appreciated.
Thanks,
Jim |
|
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Mon Sep 03, 2007 10:46 am Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
conceptcrew,
I checked out your site, and I notice that as a guest I had a session ID. Did you remember to install CyberAlien's guest session mod? |
|
|
| Back to top |
|
 |
conceptcrew
Joined: 02 Sep 2007 Posts: 7
|
Posted: Mon Sep 03, 2007 12:09 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
installed that mod and it is still not working on viewtopic.
Any more ideas? |
|
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Mon Sep 03, 2007 12:21 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
| What does your rewrite code in the .htcaccess look like? |
|
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Mon Sep 03, 2007 12:28 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
hmmm, dcz is the expert around here. I don't know if this has anything to do with it, but I also noticed that the appears to be a bit messed up. Instead of getting a clickable link, you get an insert cursor. I'm not sure what that's about. It may be related somehow....
Maybe check your page_header.php? Ensure that | Code: | 'U_INDEX' => append_sid('index.'.$phpEx),
|
isn't messed up? |
|
|
| Back to top |
|
 |
conceptcrew
Joined: 02 Sep 2007 Posts: 7
|
Posted: Mon Sep 03, 2007 12:52 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
ok here is the .htaccess
I used the one provided in the download of this mod.
| Code: |
# You could need to un-comment the following line
# Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^index\.html$ /index.php [QSA,L,NC]
# FORUM PROTECTION RULE
# RewriteRule ^[a-z0-9_-]+/([^/]+\.html)$ /index.php [R=301,L,NC]
# CATEGORIES
RewriteRule ^[a-z0-9_-]*-c([0-9]+)\.html$ /index.php?c=$1 [QSA,L,NC]
# PAGINATED FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L,NC]
# PAGINATED TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L,NC]
# TOPIC
RewriteRule ^[a-z0-9_-]*-t([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
#PROFILES
RewriteRule ^member([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
|
And the page header.php was never editted. it is a fresh install of phpbb 2.0.22 |
|
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Mon Sep 03, 2007 1:23 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
| Well, something is definitely goofy. Your phpBB logo doesn't link to your index like it should, either (by default). Maybe something in your overall_header? Like an anchor that didn't get properly closed, or maybe you're missing a quotation mark? |
|
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Mon Sep 03, 2007 1:29 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
I just looked at the page source. What do you have listed as the domain name in your general configuration options? Live Test Area? It should be www.reptilerescueleague.com, and your script path should be /
All the links that are supposed to be pointing at www.reptilerescueleague.com/index.php are pointing to http://Live Test Area, which isn't a real address. |
|
|
| Back to top |
|
 |
conceptcrew
Joined: 02 Sep 2007 Posts: 7
|
Posted: Mon Sep 03, 2007 1:29 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
overall_header.tpl and page_header.php were not modified or editted in anyway for this mod install.
This is a fresh install of the phpbb script with no other mods installed.
I am looking into the edits made on the other files for this mod now. Maybe there was something done wrong. |
|
|
| Back to top |
|
 |
conceptcrew
Joined: 02 Sep 2007 Posts: 7
|
Posted: Mon Sep 03, 2007 1:32 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
Well, now that is just another issue i found. Login works but drops you at a blank page as does clicking on the admin link. i get a SID but also a blank page, not even the login page for the admin area.
ok, that is all fixed. LInks are now corrected. I cannot believe i made such a simple mistake on the server name
ANyway, the view topic is still not converting to the SEO Friendly URL. but all other issues have been corrected.
Thanks for your help on this. |
|
|
| Back to top |
|
 |
coyote phpBB SEO Team

Joined: 11 May 2007 Posts: 72
|
Posted: Mon Sep 03, 2007 1:40 pm Post subject: Re: Mod rewrite is working on everything but viewtopic |
|
|
| haha well it's easy to do when you've got 101 things that you're working on. Glad I could help some. Hopefully dcz or someone more knowledgeable than I am can help you with the rewrite issues. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
conceptcrew
Joined: 02 Sep 2007 Posts: 7
|
|
| Back to top |
|
 |
|
|