Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

.htacess and wordpress

  • 07-01-2008 11:12PM
    #1
    Registered Users, Registered Users 2 Posts: 3,483 ✭✭✭


    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