Rewrite not working

Discussion in 'Apache' started by wizzard, Feb 6, 2007.

  1. #1
    Hello,

    I have something like this =>

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/resource-directory.*
    RewriteRule ^resource-directory/(.*)\.(.*) /index.php?page_id=14&category=$1 [L]

    => This is the code under what i've made but this is from wordpress.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    But this is not working. It's working with [R=301,L] but my url is then like www.mysite.com/index.php?page_id=14&category=arts-and-humanities this and i want something like this www.mysite.com/resource-directory/arts-and-humanities.html

    It's my own linkdirectory that i want to add into my wordpress via a phpexec plugin.

    Can someone help me ?
     
    wizzard, Feb 6, 2007 IP
  2. wizzard

    wizzard Peon

    Messages:
    160
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone an idea?
     
    wizzard, Feb 6, 2007 IP