Ok. I'm getting into the classifieds game as an alternative to Backpage & Craigslist (and when I finish it, I know all of yall will support me by posting free ads
) but for now, I'm having a problem that I'm trying to find an easy solution for. You know how backpage and craigslist has city.domain.com, well, the software I have purchased has domain.com/subdir/city . I was thinking there was an easy way to change this so I asked the tech support for the software how to do it. They told me to use a mod_rewrite on apache to do it or I have to reinstall the software for every city and do this every time I put in a new city (no way would I do that). I haven't messed around with mod_rewrite in years. I thought this would work but no go:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com$1 [L,R=301]
RedirectMatch 301 ^/city/(.*)$ http://city.example.com/$1
Any ideas? This might be a little to technical for this place but hey! I at least get to tell you to look out for the new guy on the block.