Download Tumblr User Manual

Transcript
Setting Up Pretty URLs
There is a great feature that will allow you to enable pretty URLs for you blog. You can
see samples of how the pretty urls look on the previous page. Follow the below steps in
order to enable pretty urls.
1. Check the “Pretty URL” setting in the Tumblr Stack.
2. Ensure that your files are linked “Relative to DOCROOT” in your Rapidweaver Site
Setup.
3. Make sure you “Republish All Files” after you make the above change.
4. Add the following configuration into your .htaccess file on your webserver. You may
need to tweak the directory structure a bit. It is setup for your blog to be in /blog.
You may need to ask your hosting company how to do this if you don’t already
know. Make sure you replace the dir names both times on each line.
# Blog Redirects
RewriteEngine On
RewriteRule blog/post-([0-9]+) /blog/index.php?id=$1
RewriteRule blog/page-([0-9]+) /blog/index.php?page=$1
RewriteRule blog/type-([a-zA-Z]+) /blog/index.php?type=$1
RewriteRule blog/tag-(\S+) /blog/index.php?tag=$1
RewriteRule blog/search-(\S+) /blog/index.php?search=$1
RewriteRule blog/refresh /blog/index.php?refresh=1
RewriteRule blog/refresh-all /blog/index.php?refresh=all
!
8
NOTE: Because of the vast possibilities with how you setup your site structure, we cannot support with the assistance to creating your .htaccess file. You can use the below resources to help you with your syntax. Of course Google is always your friend! :-)
http://corz.org/serv/tricks/htaccess2.php
http://blogs.sitepoint.com/guide-url-rewriting/
!
9