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
"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."
Comments on detail rewriting issue
Beginner
Usergroup: Customer
Joined: Jul 30, 2005
Total Topics: 1
Total Comments: 2
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
Beginner
Usergroup: Customer
Joined: Jul 30, 2005
Total Topics: 1
Total Comments: 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."
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
In classes/onelink.php, replace with Will patch shortly.