ultrus Posted September 24, 2008 Share Posted September 24, 2008 Hello, I'm finishing up a website for Vail photographer Shane Macomber at www.shanemacomber.com. The photo galleries are dynamically generated, with urls that look like: http://www.shanemacomber.com/portfolio/?cat=weddings&gal=bookone How would I create a rewrite rule to make it look like this?: http://www.shanemacomber.com/portfolio/weddings/bookone I think that looks much nicer and easier to remember. Thanks for the assist in advance! Link to comment https://forums.phpfreaks.com/topic/125601-comportfoliocatweddingsgalbookone-to-comportfolioweddingsbookone/ Share on other sites More sharing options...
ultrus Posted September 24, 2008 Author Share Posted September 24, 2008 I think I figured it out, but it won't help because the host does not support .htaccess for accounts. (boo!) Options +FollowSymLinks RewriteEngine on RewriteRule /portfolio/(.*)/(.*)$ /portfolio/?cat=$1&gal=$2 Does that look right? Link to comment https://forums.phpfreaks.com/topic/125601-comportfoliocatweddingsgalbookone-to-comportfolioweddingsbookone/#findComment-649379 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.