Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End .htaccess custom url with php Re: .htaccess custom url with php

#59714

It is a confusing subject because it involves two of the great mysteries of the intarwebz. Apache .htaccess files and regular expressions.

There is no way around it. Regular expressions are hard. I found them hard when I first encountered them, and I sometimes still use a cheatsheet when creating them. But don’t let that put you off. Learn them. Regular expressions are found not just in .htaccess, they are all over the place – PHP, Perl, Shell scripts, Ruby on Rails, Javascript, Super Deluxe Automatic Coffee Makers. Alright, maybe not that last one but they are pretty much everywhere else and that makes them worth learning!

Apostrophe posted a good link about .htaccess so I will post one about regular expressions in general – http://www.regular-expressions.info/