January 5, 200917 yr Hi, Would you know the code to rewrite a single page filename with .htaccess? eg. http://www.website.com/old.html rewrite to http://www.website.com/new.html So in other words, the file on the server will be old.html and users will be viewing this file howevery with the url http://www.website.com/new.html so this new url points to the old.html. Hope you understand, Thanks
January 5, 200917 yr Options +FollowSymLinks RewriteEngine on RewriteRule ^old\.html$ /new.html [R=301,L] Remember to call the file '.htaccess' with a period (dot) before it, not 'htaccess'.
Create an account or sign in to comment