Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

redirect

battersbatters New
edited January 2012 in Vanilla 2.0 - 2.8

how to redirect to a new domain with preservation of the way to the messages
changed htaccess like this

   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^newdomain
RewriteCond %{REQUEST_URI} !^/robots.txt$
RewriteRule (.*) newdomain/$1 [R=301,L]

is obtained

oldom/discussion/641/post/p1
newdom/index.php?p=discussion/641/post/p1

I want to be so

oldom/discussion/641/post/p1
newdom/discussion/641/post/p1

without prefix index.php?p=

Answers

  • Options

    change line 3 from RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L] to RewriteRule ^(.*)$ $1 [QSA,L]

Sign In or Register to comment.