Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

.htacess and wordpress

Options
  • 07-01-2008 11:12pm
    #1
    Registered Users Posts: 3,401 ✭✭✭


    Hi Lads,
    I've the following .htaccess file
    
    # -FrontPage-
    
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    Options -Indexes
    
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName blah blah blah
    AuthUserFile blah blah blah
    AuthGroupFile blah blah blah
    
    
    
    
    ## REWRITE DEFAULTS ###
    RewriteEngine On
    RewriteBase / 
    
    RewriteRule ^error/([^/]+)/$ error.php?id=$1 [R]
    RewriteRule ^([^/]+)/$ county.php?county=$1
    
    RewriteRule ^([^/]+)/addpub/$ addpub.php?county=$1 [R]
    RewriteRule ^([^/]+)/addcrawl/$ addcrawl.php?county=$1 [R]
    RewriteRule ^([^/]+)/crawls/$ crawls.php?county=$1 [R]
    
    RewriteRule ^([^/]+)/addcrawl/([^/]+)/$ addcrawl.php?county=$1&message=$2 [R]
    RewriteRule ^([^/]+)/crawl/([^/]+)/$ crawl.php?county=$1&crawl=$2 [R]
    
    
    
    RewriteRule ^([^/]+)/([^/]+)/$ pub.php?county=$1&pub=$2
    
    RewriteRule ^([^/]+)/([^/]+)/addedrate/$ pub.php?county=$1&pub=$2&message=1 [R]
    RewriteRule ^([^/]+)/([^/]+)/addedpics/$ pub.php?county=$1&pub=$2&message=2 [R]
    RewriteRule ^([^/]+)/([^/]+)/addedmap/$ pub.php?county=$1&pub=$2&message=3 [R]
    RewriteRule ^([^/]+)/([^/]+)/spam/$ pub.php?county=$1&pub=$2&message=4 [R]
    
    RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ $3.php?county=$1&pub=$2
    RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $3.php?county=$1&pub=$2&id=$4
    
    
    
    

    it's mostly doing what I want but now I'm trying to set up worpress it's messing everything up?

    I have the wordpress files in a folder named wordpress (actually two - wordpress/wordpress/) but the hta acccess file is really messing up the redirects?

    http://www.ratemypub.ie/wordpress/wordpress/index.php

    Any help would be much appreciated!

    Oh and what is the following about?
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    Options -Indexes
    

    Does this have anything to do with it?


Comments

  • Closed Accounts Posts: 1,200 ✭✭✭louie


    this could be the line messing thigs up:
    RewriteRule ^([^/]+)/([^/]+)/$ pub.php?county=$1&pub=$2
    


Advertisement