How to rewrite/redirect a folder name with .htaccess

Author Topic: How to rewrite/redirect a folder name with .htaccess  (Read 1235 times)

Offline jpf566Topic starter

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 9
  • Karma: 1
I have a folder in my site that I want to rename. I don’t want to just rewrite the URL and keep my old folder name, I want to change the folder name and then do whatever is necessary with .hataccess to not lose search engine rankings. The folder name I want to change has a space in it and also is misspelled (whoops x2)

Example.

Mysite.com/old foldr/page.html

Mysite.com/newfolder/page.html

How would I go about doing this with .htaccess?  Do I just switch the folder name on my server and then set up a redirect, or do I do a rewrite?  Sorry now familiar with the terms or .htacces.

Thanks all


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3466 Views
Last post 05-10-2011, 03:04:24
by rahikumar
2 Replies
1534 Views
Last post 12-04-2014, 02:47:16
by Stephen
0 Replies
691 Views
Last post 04-27-2015, 17:09:57
by nqservices
0 Replies
797 Views
Last post 11-22-2016, 04:51:01
by mahisharma2
3 Replies
1239 Views
Last post 12-05-2016, 02:10:42
by jamespatrick2512