Webmastersite.net
Register Log In

URL rewrite issues

Comments on URL rewrite issues

joshberm
Nothing is impossible...

Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida

Total Topics: 36
Total Comments: 91
Posted Sep 08, 2006 - 1:13 PM:


There seem to be some issues with the SEO admin page. If everything is working fine, then you submit the form without changing anything, the URL re-writing breaks. Submit the form a 2nd time without changing anything and it works again.

---------------------------------------------------------------------

Anyway when everything else is working OK, the Link Details pages cannot be found. Go to http://www.gowesleychapel.com/directory/Automotive/ and hover on "sponsor 1". The details URL appears correctly as "http://www.gowesleychapel.com/directory/sponsor_1.html" but it can't find the Details page when you click on it.

Also the custom rewriting doesn't seem to work at all. Hover over "Sitemap" at the bottom of the page and see for yourself.


Here's the contents of .htaccess, located in ".com/directory/"


Options +FollowSymlinks
RewriteEngine on

RewriteBase /directory/

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

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

RewriteRule ^/([a-z]+)/([0-9]+)/?$ link.php?action=$1&id=$2
RewriteRule ^/([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 ^/([-_/\+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
RewriteRule ^Local_Businesses_Sitemap.html$ sitemap.php


Attached Files:
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 10, 2006 - 12:54 AM:

That's an illegal link details url in any version. The id number of the link has to be in it. The default is links/{LINKTITLE}-{LINKID}.html
joshberm
Nothing is impossible...

Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida

Total Topics: 36
Total Comments: 91
Posted Sep 10, 2006 - 7:48 AM:

Paul,

It only seems to work when:
"Name to use for link details:" is "links"
AND
"Format for link details rewriting:" begins with "links/".

Replacing these with anything but "links" doesn't work on my site.


It also seems that "{LINKTITLE}-{LINKID}.html" is the required terminator.
I tried to use "links/{LINKTITLE}/{LINKID/" and couldn't get that to work.
Also tried "links/{LINKTITLE}/{LINKID}.html" and no luck.
Also tried "links/{LINKTITLE}_{LINKID}.html".


If I'm doing something wrong, maybe you could explain all the settings in depth for me. Thanks for your help.


Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 13, 2006 - 4:26 PM:

You can change to something other than links/ if you edit your .htaccess, which is of course why there's the * next to it with the "warning: if you change these you'll have to change your .htaccess." You can't, however, change it to something that doesn't give a link id anywhere since there's no way to know what link it'd mean.
joshberm
Nothing is impossible...

Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida

Total Topics: 36
Total Comments: 91
Posted Sep 15, 2006 - 12:20 PM:

Thought that you had said something about Links 4.0 handling the .htaccess changes for you. Must have been mistaken, but got it to work with a little trial and error in .htaccess.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 16, 2006 - 4:41 PM:

Ah, didn't notice your version number.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 22, 2006 - 4:01 AM:

Fixed for RC 1.
joshberm
Nothing is impossible...

Usergroup: Customer
Joined: Aug 07, 2006
Location: Tampa, Florida

Total Topics: 36
Total Comments: 91
Posted Sep 27, 2006 - 11:50 AM:

RC1 seems to have taken care of most of the problems. But I still can't use custom rewrites (sitemap.php for example). Could it be something with my server?
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Sep 29, 2006 - 9:11 AM:

The instructions for it changed, note you're not supposed to use full urls.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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