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

    Join Date
    Jun 2004
    Posts
    27
    Rep Power
    0

    .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. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,961
    Rep Power
    9397
    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
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    27
    Rep Power
    0
    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