Jump to content

...com/portfolio/?cat=weddings&gal=bookone to ...com/portfolio/weddings/bookone?


ultrus

Recommended Posts

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! :)

 

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.