1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

htaccess + FilesMatch

Discussion in 'Apache' started by discoverclips, Nov 10, 2005.

  1. #1
    I want search engine friendly URLs but my webhosting doesn't have mod rewrite.
    So I found something similar called FilesMatch.

    I tried using this code in .htaccess

    <FilesMatch "^video$">
        ForceType application/x-httpd-php
    </FilesMatch>
    
    Code (markup):
    So I have a page with video.php?artist=xx&title=yy
    If I would use as link on the mainpage: /video/xx/yy it should work, but it doesn't
    I keep getting a 404 when trying.

    /video.php/xx/yy works but I heard search engines don't like that?

    Any ideas?
     
    discoverclips, Nov 10, 2005 IP
  2. discoverclips

    discoverclips Peon

    Messages:
    491
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I added a RedirectMatch, so visiting /video/artist/title would forward you to /video.php/artist/title
    would this be better for search engine crawling?
     
    discoverclips, Nov 10, 2005 IP
  3. Cristian Mezei

    Cristian Mezei Notable Member

    Messages:
    3,332
    Likes Received:
    355
    Best Answers:
    0
    Trophy Points:
    213
    #3
    Just move to another host that is not free :)

    If you actually pay for this one (without having apache mod_Rewrite module on) MOVE to another one.
     
    Cristian Mezei, Nov 10, 2005 IP