From what i gathered myself, the .htaccess file i have does the following:
I moved my site from .com to .ca so i used a 301 redirect + i made sure everything goes to "www" + i deleted the .html extension of all pages on my site which i did manually by writing a redirect for every page (about 35 pages) and the last thing which i don't know how to do is i want one of the pages name to be changed so i want a redirect from the old page (which doesn't have an extension) to a new page which also doesn't have extension but has a different file name.
Ill copy paste the code i'm using now:
- Code: Select all
RewriteEngine on
Rewritecond %{http_host} ^lilianalaser.ca [nc]
Rewriterule (.*)$ http://www.lilianalaser.ca$1 [r=301,nc]
Rewritecond %{http_host} ^lilianalaser.com [nc]
Rewriterule (.*)$ http://www.lilianalaser.ca$1 [r=301,nc]
Rewritecond %{http_host} www.lilianalaser.com [nc]
Rewriterule (.*)$ http://www.lilianalaser.ca$1 [r=301,nc]
RewriteRule ^Services$ Services.html [L]
RewriteRule ^Price-List$ Price-List.html [L]
RewriteRule ^About-Us$ About-Us.html [L]
RewriteRule ^faq$ faq.html [L]
RewriteRule ^Contact-Us$ Contact-Us.html [L]
RewriteRule ^Zerona-Liposuction-Toronto$ Zerona-Liposuction-Toronto.html [L]
RewriteRule ^Laser-Hair-Removal$ Laser-Hair-Removal.html [L]
RewriteRule ^Accent-Radio-Frequency$ Accent-Radio-Frequency.html [L]
RewriteRule ^Photo-Facial-Rejuvenation$ Photo-Facial-Rejuvenation.html [L]
RewriteRule ^Laser-Skin-Tightening$ Laser-Skin-Tightening.html [L]
RewriteRule ^Microdermabrasion$ Microdermabrasion.html [L]
RewriteRule ^Hydradermie-Guinot$ Hydradermie-Guinot.html [L]
RewriteRule ^Electrolysis$ Electrolysis.html [L]
RewriteRule ^Contact-Map$ Contact-Map.html [L]
RewriteRule ^Commercial-Resoures-One$ Commercial-Resoures-One.html [L]
RewriteRule ^Commercial-Resoures-Two$ Commercial-Resoures-Two.html [L]
RewriteRule ^Commercial-Resoures-Three$ Commercial-Resoures-Three.html [L]
RewriteRule ^Commercial-Resoures-Four$ Commercial-Resoures-Four.html [L]
RewriteRule ^Commercial-Resoures-Five$ Commercial-Resoures-Five.html [L]
RewriteRule ^Commercial-Resoures-Six$ Commercial-Resoures-Six.html [L]
RewriteRule ^Commercial-Resoures-Seven$ Commercial-Resoures-Seven.html [L]
RewriteRule ^Commercial-Resoures-Eight$ Commercial-Resoures-Eight.html [L]
RewriteRule ^Commercial-Resoures-Nine$ Commercial-Resoures-Nine.html [L]
RewriteRule ^Commercial-Resoures-Ten$ Commercial-Resoures-Ten.html [L]
RewriteRule ^Commercial-Resoures-Eleven$ Commercial-Resoures-Eleven.html [L]
RewriteRule ^Commercial-Resoures-Twelve$ Commercial-Resoures-Twelve.html [L]
RewriteRule ^Commercial-Resoures-Thirteen$ Commercial-Resoures-Thirteen.html [L]
RewriteRule ^Commercial-Resoures-Fourteen$ Commercial-Resoures-Fourteen.html [L]
RewriteRule ^Commercial-Resoures-Fifteen$ Commercial-Resoures-Fifteen.html [L]
RewriteRule ^Commercial-Resoures-Sixteen$ Commercial-Resoures-Sixteen.html [L]
RewriteRule ^Commercial-Resoures-Seventeen$ Commercial-Resoures-Seventeen.html [L]
RewriteRule ^Commercial-Resoures-Eighteen$ Commercial-Resoures-Eighteen.html [L]
RewriteRule ^Commercial-Resoures-Nineteen$ Commercial-Resoures-Nineteen.html [L]
The page I'm trying to change his name is the following:
Laser-Hair-Removal (.html) and it should be redirected to Laser-Hair-Removal-Toronto (.html)
Also, while we are at it, maybe (tell me what you think) it would be wiser to make a rule to change everything to lower case?
Thanks for the help!