.htaccess theme switcher url rewrite - please help

Discussion in 'Apache' started by gina.alessia, Apr 11, 2009.

  1. #1
    Can anyone help me to write the .htaccess rules for theme switcher reloaded plugin for wordpress.

    site.com/?wptheme=theme to become site.com/theme


    I found something on a website:

    Options +FollowSymLinks   
    RewriteEngine on   
    RewriteRule ^([A-Za-z0-9]+)/?$ index.php?wptheme=$1 
    Code (markup):

    It`s working but the problem is that it changes the theme but it is not returning the main content page as normal. It returns a 404 error.

    Please help !
     
    gina.alessia, Apr 11, 2009 IP
  2. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #2
    Your rule seems to be fine, maybe the problem with your other htacess rules.
     
    buldozerceto, Apr 11, 2009 IP
  3. gina.alessia

    gina.alessia Well-Known Member

    Messages:
    449
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    110
    #3
    this is the content of my .htaccess:

    
    Options +FollowSymLinks   
    RewriteEngine on   
    RewriteRule ^([A-Za-z0-9]+)/?$ index.php?wptheme=$1
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wp/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp/index.php [L]
    </IfModule>
    
    # END WordPress
    
    Code (markup):
     
    gina.alessia, Apr 11, 2009 IP