Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

redirect question

Status
Not open for further replies.
Joined
Mar 13, 2006
Posts
2,263
Reaction score
30
Hello

I've transfered my forum from IPB to Vbulletin, and I'm trying to set up my htaccess file however I can't get it to 301 to my new urls.

I've got a list of old and new, just need to work out what to put in the .htaccess

Can anyone advise? (the links below are correct just doesn't work lol)

Example
RewriteEngine On
RewriteBase /
Redirect 301 /index.php?showtopic=2 http://www.fibro.org.uk/threads/1-Welcome
Redirect 301 /index.php?showtopic=3 http://www.fibro.org.uk/threads/2-Welcome-to-the-forum
Redirect 301 /index.php?showtopic=4 http://www.fibro.org.uk/threads/3-Spoons
Redirect 301 /index.php?showtopic=5 http://www.fibro.org.uk/threads/4-Hello-from-Bubbly
 
Never done it that way - don't think that could ever work when using parameters (happy to be proven wrong).

Here's what I do when dealing with parameters (anything after the ?) - use modrewrites and then the type of redirect after in [ ] i.e.

RewriteRule ^what to redirect$ http://where to go? [L,R=301]
 
what happens when you tried the above?

another way is to do this:
RewriteCond %{REQUEST_URI} /index.php$
RewriteCond %{QUERY_STRING} ^showtopic=2$
RewriteRule ^.*$ http://www.fibro.org.uk/threads/1-Welcome [L,R=301]

if that still fails you've nearly reached the end of my htaccess knowledge :)
 
Status
Not open for further replies.

Rule #1: Be Respectful

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom