I'm working on the new version of my site and when it'll be released I'll need to have redirect set up for the forum old URLs in order to keep the pages indexed by google.
atm the forum URLs are based on the joomla bridge (the smf developed one) so a board URL looks like this: http://www.italiansubs.net/index.php?option=com_smf&Itemid=26&board=132.0
in the next version of the site the forum won't be wrapped in joomla anymore so the above URL will become this: http://www.italiansubs.net/forum/index.php?board=132.0
I wrote this rule in nginx configuration file to begin testing redirection on a testing subdomain:
[code]
location / {
index index.php;
rewrite ^/index\.php\?option=com_smf&Itemid=26&board=([0-9]*)$ /forum/index.php?board=$1.0 last;
}
[/code]
but it doesn't work, it doesn't even redirect to anything, it's like it doesn't recognize the first url in the rewrite rule :'(
are there any other characters to be escaped besides "." and "?" ?
am I doing something else wrong?
any help would be really appreciated :)