SMF Support > vBulletin

Aliasing old VB postURLs to SMF URLs

<< < (2/4) > >>

Ricky.:

--- Quote from: IchBin™ on September 01, 2011, 09:21:37 PM ---Hmmm... been a long time since I messed with these things. Maybe try something like this:

--- Code: ---RewriteRule ^staff-area/([0-9]+)$   forum/index.php?topic=$1 [R=301,L]
--- End code ---


Cross your fingers and hope it works. :D

--- End quote ---
Above is the best solution, you will not loose traffic either.

IchBin™:

--- Quote from: Ricky. on September 09, 2011, 01:26:43 AM ---
--- Quote from: IchBin™ on September 01, 2011, 09:21:37 PM ---Hmmm... been a long time since I messed with these things. Maybe try something like this:

--- Code: ---RewriteRule ^staff-area/([0-9]+)$   forum/index.php?topic=$1 [R=301,L]
--- End code ---


Cross your fingers and hope it works. :D

--- End quote ---
Above is the best solution, you will not loose traffic either.


--- End quote ---

I was hoping to know if it worked. lol

MrMike:
Yep, using header() is a better, cleaner way to do it.

The HTML stuff was leftover from an earlier incanation- we were going to print out a message about the site changeover with some additional links and info, but we dropped that idea.




--- Quote from: Oldiesmann on September 09, 2011, 12:48:22 AM ---Use this code instead of that big print section... Takes up less space...


--- Code: ---header('Location: ' . $new_url);
--- End code ---

--- End quote ---

MrMike:
I may play with this and see if I can get it to go.  :D

EDIT: I fiddled with this for a while but couldn't get it going. It looks like it should work.


--- Quote from: IchBin™ on September 01, 2011, 09:21:37 PM ---Hmmm... been a long time since I messed with these things. Maybe try something like this:

--- Code: ---RewriteRule ^staff-area/([0-9]+)$   forum/index.php?topic=$1 [R=301,L]
--- End code ---


Cross your fingers and hope it works. :D
--- End quote ---

IchBin™:
Did you have "RewriteEngine On"  set? Either way, I guess it doesn't matter since you are up and working. :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version