Hi, We just switched over a non-wordpress site to wordpress and we are attempting to use the .htaccess to map and 301 redirect the old URLs. This does not seem to be working. We're using: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Redirect 301 /oldsite/Info.aspx?pid=26 http://www.example.com/new-website-page/ Code (markup): Please advise
I guess you need to put those redirect line ie. for old one in separate .htaccess under folder /oldsite/ , ie. the place where actually Info.aspx?pid=26 pages exists and it is in /oldsite/ Try out and let us know !!
Dear visitors How do I make redirect 301 for .aspx pages ??? I would like to redirect few URLs (homepage) to the main URL. My homepage is "http://www.________.com/" and I would like to redirect (301) the following pages: "http://www.________.com" "http://________.com" "http://________.com/" "www.________.com" "www.________.com/" "www.________.com/default.aspx" Right now the default URL in my CMS is "www.________.com/default.aspx", but the homepage is "http://www.________.com/" By the way, Google webmaster tool thinks that I have 2 pages with duplicate Meta tags - the "/" page and the "/default.aspx" page. Thanks Fortumania