#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    30
    Rep Power
    14

    .htaccess 301 redirect


    Hello,

    How can I do a Mod Rewrite 301 redirect in the following cases?

    Thank you in advance for your help.

    http://www.example.com/folder1/index.php
    http://www.example.com/folder1/index.php/
    to
    http://www.example.com/folder1/

    http://www.example.com/folder2/index.php
    http://www.example.com/folder2/index.php/
    to
    http://www.example.com/folder2/
  2. #2
  3. Anemic Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,804
    Rep Power
    9432
    It should be fairly straightforward. What have you tried so far?

    Comments on this post

    • jharnois agrees : He clearly missed your point :-/
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    30
    Rep Power
    14
    Originally Posted by requinix
    It should be fairly straightforward. What have you tried so far?
    I haven't tried anything yet. I didn't say that.

    I want do a Mod Rewrite 301 redirect so this
    http://www.example.com/folder1/index.php

    will go to this
    http://www.example.com/folder1/

    Thank you.

IMN logo majestic logo threadwatch logo seochat tools logo