I'm just recovering from reformatting my computer and it turns out I forgot to backup my backups, and the inevitable happened. I accidentally overwrote my .htaccess file which for the life of me I can't recreate it.
I use ?p= to dictate what to display in the page and I used rewrite to mask domain.com/?p=foo/bar as domain.com/foo/bar/, and now the entire site is un-navigatable. I've been messing around for the best part of an hour and I can't seem to get it right. Can anyone furnish me with the right answer?
What you've suggested seems to act as ?p=foo/bar/ which adds an extra, empty value to the array ([0]=>'foo', [1]=>'bar', [2]=>''), unlike what I had before which left me with just ?p=foo/bar ([0]=>'foo', [1]=>'bar'). Not a huge issue, I can get around it.
Also, I seem to remember there was something involving -f or -d, which prevented the rule applying to directories, which allowed me to visit domain.com/images/ which is an actual folder, not a page on the site. (?p=images).
Hoping what I've written makes sense, a storming headache, a technical accident and a sudden realisation you're an idiot does not make for a good poster.
I tirelessly searched Google to no avail, this place is usually my last resort. Thanks for your help though. As it turns out, after some fiddling, what I actually needed was this.
Bookmarks