WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

detail rewriting issue
goes to "thread" instead of links

Version: 3.20
printPrint


detail rewriting issue
Soren
Beginner

Usergroup: Customer
Joined: Jul 30, 2005
Total Topics: 1
Total Posts: 2
Posted 07/30/05 - 04:00 AM:
quote post
#1
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 Posts: 2
Posted 07/30/05 - 03:31 PM:
quote post
#2
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 08/01/05 - 01:11 PM:
quote post
#3
In classes/onelink.php, replace
if ($settings->rewritethreadnames == 'no') $url = $settings->rewritethread .'/'. $this->id;
with
$url = $settings->rewritelink .'/'. $this->id;
Will patch shortly.


Edited by Paul on 08/01/05 - 01:14 PM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.