Results 1 to 7 of 7

Thread: .htaccess 301 ReWrite Rule After Change URL Tags Path

  1. #1
    Join Date
    Nov 2008
    Posts
    92

    Default .htaccess 301 ReWrite Rule After Change URL Tags Path

    Hello ppl.
    I have a big problem. I had to change the structure of my url“s paths ( Category , Detail and Tag“s!!).
    I have 5000 indexed pages at google!
    Now I want to make a rewrite 301 rule to send the visitors from old urls to the news urls paths!

    Example for link details:
    old url path: /directory/link-615/linktitle.html
    new url path: /link/store-615/linktitle.html

    How to make a 301 redirect that works for all the link“s details page ?
    Thanks in advance,

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I'm NOT an expert, and you might be best served to go to a forum with people who specialize in htaccess info. But you can try this

    Redirect 301 /directory/$1/$2 http://www.yoururl.com/link/$1/$2

  3. #3
    Join Date
    Mar 2007
    Posts
    26

    Default

    try this:

    RewriteRule ^directory/link-([0-9]*)/([0-9a-zA-Z-_+]*)\.html$ link/store-$1/$2.html [R=301,L]

  4. #4
    Join Date
    Nov 2008
    Posts
    92

    Default Works Like a Charm!

    Paps , one more time yours tips works like a charm! Wonderful ! ( Are you sure you're not a member of the nicecoder team?!:-p joooke!)

    The essence of the word "community" is sharing knowledge among its members!
    Now nicecoder finally looks like a real community!

    Sincerely, i hope that, this community can continue, on the right track!

    Thanks community

  5. #5
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Very nice

  6. #6
    Join Date
    Mar 2007
    Posts
    26

    Default

    Quote Originally Posted by chunguens View Post
    Paps , one more time yours tips works like a charm! Wonderful ! ( Are you sure you're not a member of the nicecoder team?!:-p joooke!)
    No, I'm not a member. Maybe that's why it works (just kidding)
    Glad to see it working.

  7. #7
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Nice work Paps!

    It is nice when community members have a higher understand and skill set than the rest of us. Their contribution to the community is not only highly appreciated but needed too

    inspireme, mpdaddy and echo@ also had this ability. Sadly it would seem they have other things that keep them busy. Hopefully they will join us again soon. Regardless, Paps is a great new addition to the community and someone I hope will be apart of the community for a long time
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. .htaccess
    By piet in forum INDEXU DELUXE v1.x
    Replies: 0
    Last Post: 03-26-2009, 05:20 PM
  2. mod rewrite, relative path
    By echo@ in forum INDEXU DELUXE v1.x
    Replies: 6
    Last Post: 02-04-2009, 11:16 PM
  3. Replies: 11
    Last Post: 02-10-2008, 05:58 PM
  4. Replies: 2
    Last Post: 11-06-2007, 01:06 PM
  5. where is .htaccess?
    By jromano in forum v5.x
    Replies: 8
    Last Post: 06-19-2007, 11:21 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
  •