• Hey there,

    I’ve got a page with the permalink ‘chat’. But now I want to manipulate my .htaccess so that I can pass two parameters in this structure:

    %blogurl%/chat/user_type/user_id

    e.g.

    %blogurl%/chat/premium/1044

    One parameter works perfectly:

    RewriteRule ^chat/(.*)$ index.php?id=$1

    But if I add another parameter I always receive a blank page:

    RewriteRule ^chat/(.*)/(.*)$ index.php?type=$1&id=$2

    I hope you can help me. This is my whole .htaccess in case that you need it:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /hw/
    RewriteRule ^register/(.*)$ index.php?mk=$1
    RewriteRule ^profile/(.*)$ index.php?id=$1
    RewriteRule ^chat/(.*)/(.*)$ index.php?type=$1&id=$2
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /hw/index.php [L]
    </IfModule>
    
    # END WordPress
  • The topic ‘Receiving a blank page using .htaccess and multiple variables’ is closed to new replies.