I Need Help With Mod Rewrite.

Discussion in 'Apache' started by MKInfo, Aug 30, 2006.

  1. #1
    Just got a new site up and running using a premade script.

    http://www.videochuckle.com/

    It automatically updates with videos and pictures.

    It has a mod rewrite but a lot of the urls are showing links like this :

    http://www.videochuckle.com/videos/526_Doctor%20Slide%20Tackle.html
    Code (markup):
    Is there an easy way to get it to display the url like this:

    http://www.videochuckle.com/videos/526_Doctor-Slide-Tackle.html
    Code (markup):
    OR

    Could someone do it for me for a small fee?Is it possible?
    I would really like it sorted before the site is crawled.

    TIA
    MK
     
    MKInfo, Aug 30, 2006 IP
  2. Bruzli

    Bruzli Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is not a mod-rewrite issue, your script needs to be changed to generate the url you want.
     
    Bruzli, Aug 30, 2006 IP
  3. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You want something like this example below in your PHP code, to replace all spaces with dashes. You'll also need to do the opposite in the script that recieves the filename as a parameter:

    $url = str_replace(' ', '-', $url);
    PHP:
    Cryo.
     
    Cryogenius, Aug 30, 2006 IP
  4. MKInfo

    MKInfo DP Guard Dog

    Messages:
    1,481
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Thanks for the replies and help guys.
    Will the SE's be ok with the urls as they are now?
     
    MKInfo, Aug 30, 2006 IP
  5. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah, shouldn't be any problem at all.
     
    Cryogenius, Aug 30, 2006 IP
  6. MKInfo

    MKInfo DP Guard Dog

    Messages:
    1,481
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Thanks for the help guys.
    I will leave it as it is.
    :)
     
    MKInfo, Aug 30, 2006 IP
  7. Brilliances

    Brilliances Active Member

    Messages:
    619
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    60
    #7
    i think php's decodeurl function also does the job.
     
    Brilliances, Aug 30, 2006 IP