Webmastersite.net
Register Log In

problems with mod_rewrite

Title problems with mod_rewrite
Description two Link Detail URLs at once
Message Text I am trying to create a random image/link generator. The anchor tags are effectively written in the PHP code as "link.php?action=detail&id={LINKID}". The mod_rewrite SHOULD point them to "{DIRURL}/wesleychapelbusinesses/{LINKCATNAME}/{LINKTITLE}/{LINKID}.html" (This is the way WSN Links functions when just browsing). But when the page loads, the links are actually rewritten to "{DIRURL}/wesleychapelbusinesses/detail/{LINKID}". (This URL strangely works also, but doesn't seem to follow the conditionals in my Details template...) I think there is a conflict in my .HTACCESS file, but I don't know what to look for. Any ideas? Here's the content of my .HTACCESS file: Options +FollowSymlinks RewriteEngine on RewriteBase /directory/ RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+[^/])$ $1/ [R] RewriteRule ^admin$ admin/index.php RewriteRule ^admin/$ admin/index.php RewriteRule ^wesleychapelbusinesses/([a-z]+)/([0-9]+)/?$ link.php?action=detail&id=$2 RewriteRule ^wesleychapelbusinesses/([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 ^wesleychapelbusinesses/([-_/\+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
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership joshberm
Views 865 views. Averaging 0 views per day.
Similar Topics
Submission Date Sep 21, 2006 - 6:57 PM