Wordpress killed htaccess mod_rewrite

Discussion in 'PHP' started by northwish, Jan 19, 2013.

  1. #1
    I think that here is an incompatibility that doesn't allows me to run urls with the last rule. After I installed wordpress the other rules appeared and now wordpress returns 404 page when trying to run the last rule.
    Can you help me?


    RewriteEngine On

    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    RewriteRule ^myfolder([^/\.]+)/$ /folder/index.php?fb_app_id=$1 [NC]
     
    northwish, Jan 19, 2013 IP
  2. genscd

    genscd Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    Use plugins! It will solve your issues easily.
     
    genscd, Jan 19, 2013 IP
  3. hor3tio

    hor3tio Well-Known Member

    Messages:
    253
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Maybe try this way:
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteRule ^myfolder([^/\.]+)/$ /folder/index.php?fb_app_id=$1 [NC][/FONT][/COLOR]
    </IfModule>
    # END WordPress
    
    Code (markup):
    Hope it works.
     
    hor3tio, Jan 20, 2013 IP