I'm not having much luck at all with the rewrite. Tested it a few versions ago and it seemed fine. With this site I did have it working, then decided to change the format of the rewrite for details. After changing I regenerated everything.
The categories work fine, but click on details and you just get a 404 error.
I don't understand the .htaccess at all, but here is what mine is....
If there's no link id involved then it has no way to determine what link you want. It's not like category rewriting, it removes all sorts of characters so there's no way to accurately calculate based on the name.
Paul wrote: If there's no link id involved then it has no way to determine what link you want. It's not like category rewriting, it removes all sorts of characters so there's no way to accurately calculate based on the name.
OH! (lightbulb come on!) Thanks Paul, it's working now
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on url rewrite problems
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
I'm not having much luck at all with the rewrite. Tested it a few versions ago and it seemed fine. With this site I did have it working, then decided to change the format of the rewrite for details. After changing I regenerated everything.
The categories work fine, but click on details and you just get a 404 error.
I don't understand the .htaccess at all, but here is what mine is....
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]
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 ^detail/([-_/+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
Under the FTP info I have put the exact info I use to upload my files
WSN Links is in the root of my site.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
So what format did you set for them?
By the way rewriting is unrelated to regeneration, it does nothing.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
So what format did you set for them?
detail/{LINKTITLE}.html
It was detail/{LINKTITLE}-(LINKID}.html I just removed the -(LINKID}
By the way rewriting is unrelated to regeneration, it does nothing.
LOL! oh well <G> Perhaps one day I shall learn to leave well alone if it ain't broke!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If there's no link id involved then it has no way to determine what link you want. It's not like category rewriting, it removes all sorts of characters so there's no way to accurately calculate based on the name.
Expert
Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 391
Total Comments: 1303
If there's no link id involved then it has no way to determine what link you want. It's not like category rewriting, it removes all sorts of characters so there's no way to accurately calculate based on the name.
OH! (lightbulb come on!) Thanks Paul, it's working now