Webmastersite.net
Register Log In

detail rewriting issue
goes to "thread" instead of links

Comments on detail rewriting issue

Soren
Beginner

Usergroup: Customer
Joined: Jul 30, 2005

Total Topics: 1
Total Comments: 2
Soren
Posted Jul 30, 2005 - 7:00 AM:

Just purchased script! AMAZING!

Two small issues I need help with. When I switch the "use link names in link details URL" to "no" and the uses clicks on details they get this www.abc.com/classifieds//thread/1. How do I correct this so it points to the Linking Details?

Also, I want to get rid of this "//" in the URL. Ideally, there would only be one "/" or a word. I would prefer a shortern the URL for Search Engines.

I have never worked with rewrites. I appreciate any help you can give me.

--------------------------
Current .httaccess file:
--------------------------

Options +FollowSymlinks
RewriteEngine on

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

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
Soren
Beginner

Usergroup: Customer
Joined: Jul 30, 2005

Total Topics: 1
Total Comments: 2
Soren
Posted Jul 30, 2005 - 6:31 PM:

ok, i fixed the

"Also, I want to get rid of this "//" in the URL. Ideally, there would only be one "/" or a word. I would prefer a shortern the URL for Search Engines."
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 01, 2005 - 4:11 PM:

In classes/onelink.php, replace
	if ($settings->rewritethreadnames == 'no') $url = $settings->rewritethread .'/'. $this->id;
with
$url = $settings->rewritelink .'/'. $this->id;
Will patch shortly.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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