Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 05-23-2006, 10:45 PM   #1 (permalink)
Inactive
 
Join Date: 01-05-04
Location: Detroit
Posts: 166
iTrader: 0 / 0%
Latest Blog:
None

al2six is liked by somebodyal2six is liked by somebodyal2six is liked by somebody
Changing forum software, trying to redirect old to new with mod_rewrite

I'm changing the forum software I'm using and i have imported all the posts from the old forum into the new. What I'm trying to do is redirect users who are trying to view a post on the old software to the same post on the new software. here's what i put in my .htaccess file:

RewriteRule ^forum/index.php?showtopic=(.*)$ forumredirect.php?topic=$1 [L]

and then forumredirect.php takes the topic id # and uses a 301 to send the user to the new url. however, this isn't working. when i attempt to view a post on the old software, it loads just fine, instead of sending me to forumredirect.php

anyone know what i'm doing wrong?

thanks
al2six is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-24-2006, 08:46 AM   #2 (permalink)
v7n Mentor
 
JamieJelly's Avatar
 
Join Date: 03-09-06
Location: London UK
Posts: 2,796
iTrader: 0 / 0%
JamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest orderJamieJelly is a web professional of the highest order
I'm no mod_rewrite expert but don't you need to turn the mod_rewrite engine on?

e.g
Code:
RewriteEngine on RewriteRule ^forum/index.php?showtopic=(.*)$ forumredirect.php?topic=$1 [L]
__________________
Bank charges
JamieJelly is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What Forum Software do you use? BluePoint Marketing Forum 69 08-23-2006 05:28 AM
Advice on changing forum directory sportsoutlaw SEO Forum 1 08-09-2006 05:58 PM
Mod_Rewrite and phpbb forum realestate Coding Forum 5 07-18-2004 06:49 AM
Quick mod_rewrite redirect query trevHCS Coding Forum 0 05-10-2004 02:50 AM


Sponsor Links
Webmaster Forum Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:39 AM.
© Copyright 2008 V7 Inc