Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter clinton4

    (@clinton4)

    Anybody?

    Hi,

    Set your desired permalink settings and then add this code in htaccess:

    # BEGIN WordPress

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

    # END WordPress

    Thanks,

    Shane G.

    Thread Starter clinton4

    (@clinton4)

    Thanks for your reply ??

    I’am now using your code in my htaccess file, but i’am not sure what to use in my permalink settings. Should it be something like: /%searchterm% or /%searchterm%.html ?

    Do you have any idea? Remember, the searchterm variable is not a normal wordpress variable, but a custom variable i’am using in a custom made PHP script.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom RewriteRule in .htaccess ?’ is closed to new replies.