Skip navigation
Currently Being Moderated

Folder Rewrite using .htaccess file?

May 9, 2013 2:24 AM

Tags: #error #internet #files #ftp #.htaccess_redirection_problem #.htaccess

Hi I have created another folder in my website for something to clone a folder I currently have but no longer want to use. I am looking to redirect anyone tryping in the directory for my old folder to my new one using a .htaccess file or any other method you may suggest.

 

The paths I want to re direct are as follows www.dor2dor.com/postpeople to www.dor2dor.com/leaflet-distribution-jobs

 

If anyone can let me know the code I need to do this it would be much appreciated.

 
Replies
  • Currently Being Moderated
    May 9, 2013 3:36 AM   in reply to NessaFrankling

    This will redirect postpeople/something to leaflet-distribution-jobs/something

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^postpeople(.*) /leaflet-distribution-jobs$1 [NC,R=301,L]
    

     

    If you want to redirect postpeople/anything to leaflet-distribution-jobs, then

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule ^postpeople(.*) /leaflet-distribution-jobs [NC,R=301,L]
    

    --

    Kenneth Kawamoto

    http://www.materiaprima.co.uk/

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points