Archives

Categories

mod_rewrite and RealURL

Finally, after much whining, I got some pretty URLs on my site.  As you can see, if you go to other pages, the URLs actually can make some sense.  Instead of "/index.php?id=32&type=0", it may now say "/about". I think search engines are supposed to like it too!  It wasn't too bad to do either. 

TYPO3, the CMS that I use, includes a .htaccess file in it's root.  It it make to use mod_rewrite and an extension called RealURL, which takes the pretty URLs people type and turn them into relevant links for the server. Until now, though, I've never realized I actually had to go edit the darn thing to make it relevant to my installation.  All that meant was editing some paths in it.  The only problems I had were a result of having my install in some sub-folders on my GoDaddy server. I had to go in and change the line that reads " RewriteRule .* index.php [L] " to " RewriteRule .* /index.php [L] ".  I also had to comment out the " RewriteBase / " line.

So if anyone wonders how to make lovely little URLs, its not too hard to do once you figure out how it works.

Leave a Reply

remember my information