WebmasterSite.net

Extra category pages (url rewrite)

Version: 5.0.47
URL:

PrintPrint


Extra category pages (url rewrite)
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 131
Total Posts: 384
quote post #1
Posted 05/27/09 - 5:01 AM:

I want to create categories that have three pages. I will use custom templates for the the two extra pages.

How do I do a url rewrite for the extra pages so that when I create new categories, the extra pages are available.
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 05/27/09 - 1:40 PM:

What are the non-rewritten URLs of these pages and what do you want them rewritten as?
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 131
Total Posts: 384
quote post #3
Posted 06/03/09 - 7:02 AM:

OK, so I want to create 3 custom pages for each category...

index.php?action=displaycat&catid=45&custom=y es&TID=accommodation

{CATREWRITEPATH}/accommodation. php


...

index.php?action=displaycat&catid=45&custom= yes&TID=attractions

{CATREWRITEPATH}/attractions.php

...

index.php?action=displaycat&catid=45&custom=yes&T ID=photos

{CATREWRITEPATH}/photos.php
jayweb
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 131
Total Posts: 384
quote post #4
Posted 06/03/09 - 7:50 AM:

It's OK, i worked it out...

RewriteRule ^([-_/\+A-Za-z0-9]+)/attractions.html?$ index.php?rewritten=1&action=displaycat&catname=$1&custom=ye s&TID=attractions
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.