mod_rewrite -Help

Discussion in 'Site & Server Administration' started by mutley, Jul 19, 2008.

  1. #1
    i need some help with mod_rewrite i still trying to learn this but i am a bit stuck with this one :D

    i got a script made for me a long time ago now but i could not use .htaccsess or mod_rewrite on my server when i got the script made but know i am on a new server and i would like to be able to use it

    here is all the information this the config file for the urls

    // URL Settings
    $config['base_url'] = 'http://site.com/';
    $config['script_name'] = 'index.php';
    $config['admin_script_name'] = 'admin.php';
    $config['profile_url'] = 'http://www.site.com/forums/member.php?action=profile&uid={$uid}';
    //$config['review_url'] = 'http://site.com/index.php?action=review&rid={$rid}'; // non-SEO
    //$config['category_url'] = 'http://site.com/index.php?action=category&cid={$cid}'; // non-SEO
    $config['review_url'] = 'http://site.com/review/{$guid}/'; // SEO (requires .htaccess mod_rewrite)
    $config['category_url'] = 'http://site.com/category/{$guid}/'; // SEO (requires .htaccess mod_rewrite)
    $config['smilies_base'] = 'http://www.site.com/forums/';
    $config['upload_dir_url'] = 'http://site.com/uploads/'; // Upload directory with trailing slash
    Code (markup):
    here is the .htaccsess file
    #DirectoryIndex index.php index.html
    #Options +FollowSymLinks
    #RewriteBase /relative/web/path/
    
    <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} -f [OR]
     RewriteCond %{REQUEST_FILENAME} -d
     RewriteRule ^(.+) - [PT,L]
     
     RewriteRule ^(.*) index.php
    </IfModule>
    
    #php_value register_globals 0
    
    Code (markup):
    all works great but i just can not click on my content of my site

    here is a link to my site

    http://tinyurl.com/6h7wtn

    any help with this would be Great if some could tell me how to fix this it be Great
     
    mutley, Jul 19, 2008 IP