Results 1 to 5 of 5
  1. #1
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Singapore
    Posts
    1,597
    Help Mod rewrite
    Help.

    One of my sites has many folders. Some links to the main page in each folder end with trailing slash, others with index.html

    How do I use mod rewrite to change
    http://www.mysite.com/folder1/index.html
    to
    http://www.mysite.com/folder1

  2. #2
    Comfortably Numb John Powell's Avatar
    Join Date
    October 17th, 2005
    Location
    Bayou Country, LA
    Posts
    3,432
    I had that situation and just used Find and Replace to make them
    Code:
    <a href="/folder1/">link</a>

  3. #3
    ABW Veteran Mr. Sal's Avatar
    Join Date
    January 18th, 2005
    Posts
    6,795
    You can take a look at this site: Mod_Rewrite Forums they have a lot of Mod Rewrite tips in there.

  4. #4
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Singapore
    Posts
    1,597
    Thanks for the link.

  5. #5
    Full Member
    Join Date
    December 20th, 2005
    Posts
    413
    If you are able to do the find/replace that bumpaw suggests, you'll reduce your processing time in the long run. If you can't, you can modify your .htaccess as needed.
    [URL=http://themoneyforums.com]The Money Forums[/URL]

  6. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. dyse mod-rewrite & FrontPage
    By traffic-tart in forum Cusimano.com Scripts
    Replies: 1
    Last Post: August 21st, 2005, 02:27 PM
  2. Mod Rewrite and Dynamic Titles
    By barb45684 in forum Cusimano.com Scripts
    Replies: 6
    Last Post: June 27th, 2005, 02:29 PM
  3. mod rewrite - I just don't get it
    By tamborinegal in forum Programming / Datafeeds / Tools
    Replies: 12
    Last Post: April 20th, 2004, 06:59 AM
  4. Mod Rewrite Question
    By swampy_webber in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: January 13th, 2004, 04:39 PM
  5. Anyone good with Mod Rewrite?
    By TJ in forum Programming / Datafeeds / Tools
    Replies: 7
    Last Post: November 22nd, 2003, 09:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •