htaccess on WordPress 2.5.1

Discussion in 'Programming' started by Hot-screensaver, May 16, 2008.

  1. #1
    Hi,

    I have a blog running the latest WordPress 2.5.1. Let's say it,s www.example.com/

    Now, under this domain name, I have a subfolder with an application inside:
    www.example.com/app/index.php

    How can I edit the .htaccess to make the app's URL search engine friendly? For example:

    www.example.com/app/run/193/keyword ->
    www.example.com/app/index.php?action=run&id=193

    (keyword is not needed in the script, I put it in the URL for search engine purposes only).

    -----
    My current .htaccess is more or less like this:-

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

    Thanks.
     
    Hot-screensaver, May 16, 2008 IP
  2. georgix

    georgix Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Think adding something like this would do a job...

    RewriteRule ^/app/(.*)/([0-9]+)/?$ /app/index.php?action=$1&id=$2 [QSA,L]
     
    georgix, May 16, 2008 IP
  3. Hot-screensaver

    Hot-screensaver Peon

    Messages:
    103
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks. But it doesn't do the job... when I browsed the page using the SEO friendly URL, it displays the 404 page from WordPress.
     
    Hot-screensaver, May 22, 2008 IP