Hi
I have a DokuWiki based site, which the site was previously based on Wordpress. I am trying to do 301 redirect to the known inbound links to my previous Wordpress site so that it doesnt hit the not found page. To achieve this, I add the following line to my htaccess file;
Redirect 301 /linux/recover-lost-partition-table-using-ubuntu-live-cd.html http://www.techrecipes.net/operatingsystem/linux/recover-lost-partition-table?
Notice that I need to add a '?' after
http://www.techrecipes.net/operatingsystem/linux/recover-lost-partition-table . Without the '?', it will redirect to this page,
http://www.techrecipes.net/operatingsystem/linux/recover-lost-partition-table?id=linux/recover-lost-partition-table-using-ubuntu-live-cd.html.
Do you know how to redirect without the '?'. The following is the .htaccess of my site (www.techrecipes.net), which I believe is
<Files ~ "^[\._]ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^techrecipes.net
RewriteRule (.*) http://www.techrecipes.net/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^lib/exe/xmlrpc.php$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
RewriteRule ^$ doku.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) doku.php?id=$1 [QSA,L]
RewriteRule ^index.php$ doku.php
Redirect 301 http://www.techrecipes.net$ http://www.techrecipes.net/