Im having a problem, PHPbb

Status
Not open for further replies.

jerxs

New member
Jun 24, 2006
1,806
24
0
North East PA
I installed a static URL script / plugin on this forum some time back and was having some problems after moving it to a sub domain. The server admins fixed my problem, but now im having another and thought id try using a redirect through a .htaccess file, no cigar.

Check it out, forum.mediaswim.com , if your not logged in you get a not found error when clicking on one of the forum areas. I cant find the static url script/plug in that I installed to back track and a redirect through .htaccess is not working.

If im logged in all is well and I can get to all forum areas. Im not to swift when it comes to server side shit, so ill give you a sample of what I tryed on the very first forum area.

Code:
Redirect http://forum.mediaswim.com/forum-1.html http://forum.mediaswim.com/viewforum.php?f=1
which does something just not what I want it to do, it redirects to;

http://forum.mediaswim.com/forum-1.html

when it should be redirecting to;

Music, news, movies, games, gadgets, forum

Any suggestions or help would be greatly appreciated.

Jer
 


I don't wanna sound rude or what ever, but when I had a php error with my forum, I went to the PHP forum and posted. Within 1 minute around 20 wanna be pro's fixed my problem. Anyway, best of luck with finding a solution.
 
If you don't have a .htaccess, make one and put this in
Code:
RewriteEngine On
RewriteRule http://forum.mediaswim.com/forum-1.html http://forum.mediaswim.com/viewforum.php?f=1
If you do have an .htaccess add that at the top of it, or if the RewriteEngine On is already there, just add the next line

Try that
 
wont work, im going to have to hunt down that static url script and back track. SHIT!

Id rather post here first, then as a last resort go there.
 
I got it figured out, this is what I had to add to my .htaccess file;

RewriteEngine On
RewriteRule ^forums.* index.php [L,NC]
RewriteRule ^post-([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?p=$1&highlight=$2 [L,NC]
RewriteRule ^post-([0-9]*).* viewtopic.php?p=$1 [L,NC]
RewriteRule ^view-poll([0-9]*)-([0-9]*)-([a-zA-Z]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&vote=viewresult [L,NC]
RewriteRule ^about([0-9]*).html&highlight=([a-zA-Z0-9]*) viewtopic.php?t=$1&highlight=$2 [L,NC]
RewriteRule ^about([0-9]*).html&view=newest viewtopic.php?t=$1&view=newest [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L,NC]
RewriteRule ^about([0-9]*)-([0-9]*).* viewtopic.php?t=$1&start=$2 [L,NC]
RewriteRule ^about([0-9]*).* viewtopic.php?t=$1 [L,NC]
RewriteRule ^about([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L,NC]
RewriteRule ^mark-forum([0-9]*).html* viewforum.php?f=$1&mark=topics [L,NC]
RewriteRule ^updates-topic([0-9]*).html* viewtopic.php?t=$1&watch=topic [L,NC]
RewriteRule ^stop-updates-topic([0-9]*).html* viewtopic.php?t=$1&unwatch=topic [L,NC]
RewriteRule ^forum-([0-9]*).html viewforum.php?f=$1 [L,NC]
RewriteRule ^forum-([0-9]*).* viewforum.php?f=$1 [L,NC]
RewriteRule ^topic-([0-9]*)-([0-9]*)-([0-9]*).* viewforum.php?f=$1&topicdays=$2&start=$3 [L,NC]
RewriteRule ^ptopic([0-9]*).* viewtopic.php?t=$1&view=previous [L,NC]
RewriteRule ^ntopic([0-9]*).* viewtopic.php?t=$1&view=next [L,NC]
 
Status
Not open for further replies.