Webmastersite.net
Register Log In

Mod-rewrite
It works on main category, not on subs...

Comments on Mod-rewrite

midwestmedia


Usergroup: Customer
Joined: Apr 17, 2004

Total Topics: 21
Total Comments: 50
Posted Mar 24, 2006 - 9:22 PM:

I did a search to see if I could find anything about this, but I didn't see this addressed specifically...

I did everything required to get mod-rewrite working but it doesn't seem to be working past the main category.

I get: http://www.domain/directory/catname

but on a sub-cat of "catname": http://www.domain.com/78

I've been working on modifications of WSN links all day, so this is probably something really simple, so if anyone knows what to do, I'd appreciate the help!

Jen
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 24, 2006 - 10:41 PM:

That's probably a 3.3.4 bug, sounds familar. Seems to be working right at http://links.webmastersite.net which is more recent.
midwestmedia


Usergroup: Customer
Joined: Apr 17, 2004

Total Topics: 21
Total Comments: 50
Posted Mar 29, 2006 - 6:18 PM:

I upgraded to 3.3.11 and the problem with mod-write wasn't fixed by upgrading....any other ideas?

Thanks,

Jen
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 30, 2006 - 8:27 AM:

Perhaps you need to regenerate categories before it applies?
midwestmedia


Usergroup: Customer
Joined: Apr 17, 2004

Total Topics: 21
Total Comments: 50
Posted Mar 30, 2006 - 11:01 AM:

One step ahead of you Paul! smiling face I already regenerated categories and everything else as well....

This one really has me stumped!

Jen

midwestmedia


Usergroup: Customer
Joined: Apr 17, 2004

Total Topics: 21
Total Comments: 50
Posted Apr 01, 2006 - 3:34 PM:

I've been trying everything I can to make this work properly....could it be something extra that needs to be modified in my .htaccess file?

I *think* I did everything I was supposed to in it....I'll post it below if someone could look at it and tell me if I screwed anything up.

Options +FollowSymlinks
RewriteEngine on

# If not working, uncomment and correctly fill the line below:
RewriteBase /directory/

RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]

RewriteRule ^admin$ admin/index.php
RewriteRule ^admin/$ admin/index.php

RewriteRule ^links/([a-z]+)/([0-9]+)/?$ link.php?action=$1&id=$2
RewriteRule ^links/([0-9]+)/?$ link.php?id=$1

RewriteRule ^thread/([0-9]+)/?$ comments.php?id=$1
RewriteRule ^thread/([0-9]+)/([0-9]+)/?$ comments.php?id=$1&page=$2

RewriteRule ^([0-9]+)/?$ index.php?action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?action=displaycat&catid=$1&page=$2

RewriteRule ^([-_/\+A-Za-z0-9]+)$ index.php?action=displaycat&catname=$1

RewriteRule ^links/([-_/\+A-Za-z0-9]+)-([0-9]+).html$ link.php?action=detail&id=$2
RewriteRule ^/([-_/\+A-Za-z0-9]+)-([0-9]+).html$ link.php?action=detail&id=$2


Thanks,

Jen
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 01, 2006 - 9:19 PM:

The htaccess doesn't have anything to do with what links the script puts in the html, only with whether they work.

When a category has a special character in the name it'd end up using the numerical rewriting. Presumably your subcategories don't though. What are your rewrite settings? I suppose something must be different from what I have at http://links.webmastersite.net where it works.


sulleleven - Custom things would be an htaccess matter, not a script matter.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.