• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

redirect question

Status
Not open for further replies.
Joined
Mar 13, 2006
Posts
2,265
Reaction score
31
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.
Top Bottom