+ Post New Thread
Results 1 to 4 of 4
Web Development Thread, Remind Me HTACCESS Redirect in Coding and Web Development; Just having a senior moment doing some htaccess 301 redirects and need to redirect following.. /component/tag/name.html to /tag/name The name ...
  1. #1

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,922
    Thank Post
    709
    Thanked 551 Times in 366 Posts
    Blog Entries
    3
    Rep Power
    204

    Remind Me HTACCESS Redirect

    Just having a senior moment doing some htaccess 301 redirects and need to redirect following..

    /component/tag/name.html to /tag/name

    The name changes every time so if did

    redirect 301 /component/tag/ /tag/

    It would add the html on the end of the new tag etc which do not want it to do?

    Ideas as brain gone completely today.

    Russell
    Last edited by russdev; 9th March 2011 at 12:04 PM.

  2. #2
    carvjo's Avatar
    Join Date
    Mar 2010
    Location
    Oxford
    Posts
    195
    Thank Post
    12
    Thanked 39 Times in 34 Posts
    Rep Power
    21
    Hi Russ - Free .htaccess Redirect Generator - this will create the file for you..

  3. Thanks to carvjo from:

    russdev (11th March 2011)

  4. #3

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,922
    Thank Post
    709
    Thanked 551 Times in 366 Posts
    Blog Entries
    3
    Rep Power
    204
    The problem is the html file extension had look at that generator but can't for life of me get right combo for it to work.

  5. #4

    russdev's Avatar
    Join Date
    Jun 2005
    Location
    Leicestershire
    Posts
    6,922
    Thank Post
    709
    Thanked 551 Times in 366 Posts
    Blog Entries
    3
    Rep Power
    204
    Worked it out in the end after brain came back to me..

    RedirectMatch 301 /component/tag/(.*).html /tag/$1

SHARE:
+ Post New Thread

Similar Threads

  1. apache htaccess ldap > server 2003
    By browolf in forum Windows Server 2000/2003
    Replies: 1
    Last Post: 2nd July 2010, 02:23 PM
  2. Replies: 5
    Last Post: 24th March 2009, 02:29 PM
  3. [Website] Remind you of anyone?
    By sparkeh in forum Jokes/Interweb Things
    Replies: 2
    Last Post: 19th January 2009, 09:58 AM
  4. .htaccess rewrite rule
    By localzuk in forum Web Development
    Replies: 2
    Last Post: 7th May 2008, 09:43 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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