New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
FocalClick.com Affiliate Program
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jul 2010
    Location
    Where u wanna B
    Posts
    143
    Feedback Score
    0

    Default Dumbass 301 redriect question?

    I have been trying to do this all day and I have to say I must suck cos I can't get it to work.

    I want to 301 redirect some asp? links back in .htaccess.

    The links would be like

    xxx.mydomain.com/cpa/htm/htm_mod_link.asp?id=1891

    and I want them 301 back to the home page only - so

    xxx.mydomain.com

    Anyone good with this stuff?
    We use and recommend Servint Web Hosting for cheap, fast, fully managed US based VPS & VDS hosting

  2. #2
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default

    redirect 301 /cpa/htm/htm_mod_link.asp?id=1891 xxx.mydomain.com


    That's how you would write it, not sure what you're asking?

  3. #3
    CK
    CK is offline
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    ?
    Posts
    2,226
    Blog Entries
    2
    Feedback Score
    35 (100%)

    Default

    Try this

    RewriteCond %{QUERY_STRING} ^id=([0-9]*)$

    RewriteRule ^cpa/htm/htm_mod_link\.asp$ http://www.mysite.com? [R=301,L]


    @JD - query strings won't work with a regular 301
    ----------------------------------------
    Everyone says they are willing to do whatever it takes to get ahead - but yet there are so few people up at 5AM ? - Robert Herjavec
    ---------------------------------------

  4. #4
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jul 2010
    Location
    Where u wanna B
    Posts
    143
    Feedback Score
    0

    Default

    Thx Ck - much appreciated
    We use and recommend Servint Web Hosting for cheap, fast, fully managed US based VPS & VDS hosting


 

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
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant