WebmasterSite.net
PHP scripts to enable your creativity
Home
Web Scripts
WSN Links
WSN Gallery
WSN Knowledge Base
WSN Forum
WSN Classifieds
WSN Directory
WSN AdUnblocker
WSN FormEmail
WSN InstaChat
WSN Redirector
WSN Webcomic
WSN Guest
Reviews
WSN For WordPress
WSN For Web Designers
Webmaster Resource Links
Register
Log In
Username
Password
Login
Forgot your password?
WSN Support Forums
Paid Scripts Support
.htaccess
.htaccess
Details
Discussion
6
Print
Comments on .htaccess
•
scriptwiki
Member
Usergroup:
Customer
Joined:
Aug 04, 2005
Total Topics:
11
Total Comments:
47
•
scriptwiki
#1 -
Quote
-
Permalink
Posted Mar 18, 2006 - 4:44 PM:
I have an htaccess file that looks like this
Options +FollowSymlinks
RewriteEngine on
# If not working, uncomment and correctly fill the line below:
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]
RewriteRule ^admin$ admin/index.php
RewriteRule ^admin/$ admin/index.php
RewriteRule ^listing/([a-z]+)/([0-9]+)/?$ link.php?action=$1&id=$2
RewriteRule ^listing/([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 ^listing/([-_/\+A-Za-z0-9]+)-([0-9]+).html$ link.php?action=detail&id=$2
How can I make it so that links that are like this
http://tidget.com/listing/detail/14
change to
http://tidget.com/14
Thanks,
Matt
•
scriptwiki
Member
Usergroup:
Customer
Joined:
Aug 04, 2005
Total Topics:
11
Total Comments:
47
•
scriptwiki
#2 -
Quote
-
Permalink
Posted Mar 18, 2006 - 8:11 PM:
Anyone?
•
Paul
developer
Usergroup:
Administrator
Joined:
Dec 20, 2001
Location:
Diamond Springs, California
Total Topics:
61
Total Comments:
7868
•
Paul
#3 -
Quote
-
Permalink
Posted Mar 20, 2006 - 12:30 AM:
That would conflict with the categories, /14 is category #14.
•
scriptwiki
Member
Usergroup:
Customer
Joined:
Aug 04, 2005
Total Topics:
11
Total Comments:
47
•
scriptwiki
#4 -
Quote
-
Permalink
Posted Mar 20, 2006 - 4:55 PM:
Well can I get it down to
http://tidget.com/listing/14
? Get rid of the detail/?
•
mrowton
Forum Regular
Usergroup:
Customer
Joined:
Feb 19, 2004
Location:
Michigan
Total Topics:
57
Total Comments:
185
•
mrowton
#5 -
Quote
-
Permalink
Posted Mar 20, 2006 - 5:41 PM:
They do work like that, try it
http://tidget.com/listing/14
•
Paul
developer
Usergroup:
Administrator
Joined:
Dec 20, 2001
Location:
Diamond Springs, California
Total Topics:
61
Total Comments:
7868
•
Paul
#6 -
Quote
-
Permalink
Posted Mar 21, 2006 - 6:47 PM:
Just make sure you have 'listing' in the admin panel corresponding to your htaccess change.
Search thread for
Go ►
Download thread as
text
HTML
Go ►
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on .htaccess
Member
Usergroup: Customer
Joined: Aug 04, 2005
Total Topics: 11
Total Comments: 47
I have an htaccess file that looks like this
Options +FollowSymlinks
RewriteEngine on
# If not working, uncomment and correctly fill the line below:
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]
RewriteRule ^admin$ admin/index.php
RewriteRule ^admin/$ admin/index.php
RewriteRule ^listing/([a-z]+)/([0-9]+)/?$ link.php?action=$1&id=$2
RewriteRule ^listing/([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 ^listing/([-_/\+A-Za-z0-9]+)-([0-9]+).html$ link.php?action=detail&id=$2
How can I make it so that links that are like this http://tidget.com/listing/detail/14
change to
http://tidget.com/14
Thanks,
Matt
Member
Usergroup: Customer
Joined: Aug 04, 2005
Total Topics: 11
Total Comments: 47
Anyone?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
That would conflict with the categories, /14 is category #14.
Member
Usergroup: Customer
Joined: Aug 04, 2005
Total Topics: 11
Total Comments: 47
Well can I get it down to http://tidget.com/listing/14 ? Get rid of the detail/?
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
They do work like that, try it
http://tidget.com/listing/14
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Just make sure you have 'listing' in the admin panel corresponding to your htaccess change.