Activity Stream
48,167 MEMBERS
6716 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1.     
    #1
    Member
    Website's:
    eotips.com

    Default htacces Help 302 redirect

    hi,
    i want to define rule in my htaccess file but i Don't know to

    can u please tell thanx

    i want to redirect all urls

    like

    http://mydomain.com/dynamicname-staticname.html

    to

    http://mydomain.com/dynamicname-staticname1.html

    some thing like this structure as above

    Thanx waiting for answers

    Regards
    Desi_Boy Reviewed by Desi_Boy on . htacces Help 302 redirect hi, i want to define rule in my htaccess file but i Don't know to can u please tell thanx i want to redirect all urls like http://mydomain.com/dynamicname-staticname.html Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    servode.com
    PHP Code: 
    Redirect 302 (.*)-staticname([0-9]+)\.html$ $1-staticname.html 
    Updated the code a bit


  4.     
    #3
    Member
    Website's:
    eotips.com
    staticname should be remain same but dynamic should change. basically i want to redirect old stuff to new url

    and staticname1 also remain same

  5.     
    #4
    Member
    Website's:
    servode.com
    Can you be more precise please ?

    Are their a lot of urls or just a few urls you want to redirect ?

    Try what I have given you above first ... that should do what you are trying to do ..


  6.     
    #5
    Member
    Website's:
    eotips.com
    ok let me explain

    this is my old structure with lots of stufff but in end name remain static like staticname

    http://mydomain.com/somedynamicname-staticname.html

    now i want to redirect all traffic coming to my old urls mainly from google will be redirect to

    http://mydomain.com/somedynamicname-staticnameversion2.html

    staticnameversion2 should remain same throughout structure , but dynamic remain same of my previous url

    hope someone should understand

  7.     
    #6
    Member
    Website's:
    servode.com
    PHP Code: 
    Redirect 302 (.*)-staticnameversion([0-9]+)\.html$ $1-staticname.html 




    Have you tried the code that I gave you the first time ?

    Let me explain a bit

    (.*) - matches 'somedynamicname'

    ([0-9]+) - is for any number after 'staticnameverion' .

    Make sure to turn on the rewritengine before you write these rules..


  8.     
    #7
    Member
    Website's:
    eotips.com
    thanx yeah working like a charm thanx alot for your time

  9.     
    #8
    Member
    Website's:
    eotips.com
    can u please help

    RewriteRule ^/rss/(.*)-my-download$ /rss/$1-your-download [R=301,L]

    i want to do some thing like this

    /rss/something-my-download to /rss/something-your-download

    is this write rewrite rule?

  10.     
    #9
    Member
    Website's:
    servode.com
    Looks fine , if it does not work , remove '/' before the condition and the rule


  11.     
    #10
    Member
    Website's:
    eotips.com
    mintcol tried but not working can u please rewrite it

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 301 redirect help
    By tractor3231 in forum Web Development Area
    Replies: 4
    Last Post: 28th Jul 2011, 04:19 PM
  2. How to Redirect !
    By softleaks in forum Tutorials and Guides
    Replies: 12
    Last Post: 20th Jul 2011, 09:01 AM
  3. 301 Redirect help
    By Rox in forum Wordpress
    Replies: 7
    Last Post: 10th Jul 2011, 09:03 PM
  4. Redirect your non www url's to www
    By hhhgame in forum Tutorials and Guides
    Replies: 11
    Last Post: 2nd Dec 2010, 03:22 PM
  5. In Need of Url REdirect mod ..?
    By litewarez in forum phpBB
    Replies: 25
    Last Post: 20th Oct 2009, 08:40 PM

Tags for this Thread

BE SOCIAL