Spidean Forums


 < Last Thread   Next Thread >Ascending sortDescending sorting  New Topic  Post Reply
Author: Subject: Pagesetter Categories and short url's

Senior Member





Posts: 149
Registered: 1/31/2004
Status: Offline

  posted on 4/17/2007 at 02:01 PM
I'm a little bit stucked with a rewrite rule for Pagesetter Categories.

quote:
RewriteRule ^pubType-categoryName.htm$ index.php?module=pagesetter&tid=11&filter=category^eq^1 [L,NC,NS]


the main problem is the ^eq^ how to replace the ^.

Also does I need to add something in the autourlsV4.ext? And what to add?

 

____________________
Carl

MazDev.com
Fishing & Boat trips at the isle Langkawi - Malaysia

 
Reply With Quote Visit User's Homepage

Administrator




Posts: 4549
Registered: 10/7/2002
Status: Online

  posted on 4/17/2007 at 06:10 PM
I have no idea. What is the URL that will be in the browser bar and what is the URL that it should go to?

-Shawn

 
Reply With Quote

Senior Member




Posts: 149
Registered: 1/31/2004
Status: Offline

  posted on 4/17/2007 at 07:22 PM
This is what is in the Browser bar:

quote:
index.php?module=Pagesetter&tid=3&f ilter=category^sub^3



It would be nice to have something like:

quote:
mod-pagesetter-tid-3-category-3.htm

 

____________________
Carl



MazDev.com

Fishing & Boat trips at the isle Langkawi - Malaysia


 
Reply With Quote

Senior Member




Posts: 149
Registered: 1/31/2004
Status: Offline

  posted on 4/19/2007 at 01:09 PM
any Ideas ?

 

____________________
Carl





MazDev.com


Fishing & Boat trips at the isle Langkawi - Malaysia



 
Reply With Quote

Administrator




Posts: 4549
Registered: 10/7/2002
Status: Online

  posted on 4/19/2007 at 01:34 PM
Haven't tested, but try this:

RewriteRule ^mod-pagesetter-tid-([^-]+)-category-([^-]+).htm$ index.php?module=Pagesetter&tid=$1&f ilter=category^sub^$2 [L,NC,NS]

Then put 'mod-pagesetter-tid-3-category-3.htm' in your browser and see.

-Shawn

[Edited on 4/19/2007 by Shawn]

 
Reply With Quote

Senior Member




Posts: 149
Registered: 1/31/2004
Status: Offline

  posted on 4/19/2007 at 03:06 PM
I'm getting closer, your tip wasn't bad.

It only seems that there is a problem with the ^sub^. Replacing the ^ with : also doesn't help.

I also tried to modify the autourlsV4.ext but it doesn't work.

The Server wouldn't rewrite the URL. So I will need to troubleshoot more.

 

____________________
Carl







MazDev.com
/>

Fishing & Boat trips at the isle Langkawi - Malaysia




 
Reply With Quote

Administrator




Posts: 4549
Registered: 10/7/2002
Status: Online

  posted on 4/19/2007 at 03:13 PM
You need to precede the .html with a slash, not this one / but the other one (this forum is removing them in my post).

Also, precede both ^ with a slash. Only the ones before and after the sub.

-Shawn

 
Reply With Quote

Senior Member




Posts: 149
Registered: 1/31/2004
Status: Offline

  posted on 4/20/2007 at 02:12 AM
I've got it working......

I tried to post the changes I did but The Forum wouldn't allow certain code, so I will post the changes in the Pagesetter Forum.

Here is the link for the thread.
http://www.elfisk.dk/index.php?module=pnForum&func=viewtopic&topic= 3366

[Edited on 20/4/2007 by mazsalleh]

 

____________________
Carl









MazDev.com
/>
/>


Fishing & Boat trips at the isle Langkawi - Malaysia


/>

 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

New Template

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 30
Comments: 0

Powered by the AutoTheme HTML Theme System
Page created in 0.122856 Seconds