Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4]

Author Topic: [MOD] Avoiding duplicate content (trailing slash issue)  (Read 14942 times)

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: [MOD] Avoiding duplicate content (trailing slash issue)
« Reply #45 on: February 15, 2011, 02:36:14 AM »

Hmmm... best advice I can suggest is to restore your .htaccess file back to what it was before you modified it.
What you have there is causing the problem.

If you are working with a 1.6 single user package, the first four Condition-Rule string-sets after the #RewriteBase / string should be as follows (these are the latest ones I have kicking around), with absolutely no changes:
Code: [Select]
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1 articlespage=$2 [L]

If you wish to add any Condition-Rule stirng-sets of your own, they must come after the above, and not alter or conflict with what the above are meant to accomplish.
« Last Edit: February 15, 2011, 02:43:51 PM by Keyrocks »
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

johnflower

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
  • I'm a poet and I didn't know it.
    • Silly Poetry
Re: [MOD] Avoiding duplicate content (trailing slash issue)
« Reply #46 on: February 15, 2011, 07:05:14 AM »

Hi Keyrocks,

Thanks for the reply. OK, will revert back to the original. May even perhaps check out Snews 1.7, although I'm reluctant.

Have a good day!

johnflower

  • Newbie
  • *
  • Karma: 0
  • Posts: 4
  • I'm a poet and I didn't know it.
    • Silly Poetry
Re: [MOD] Avoiding duplicate content (trailing slash issue)
« Reply #47 on: February 16, 2011, 03:47:18 PM »

Ok I took the opportunity to switch over to 1.7. i must admit, i hated the first 1.7, but it seems the current release is quite nice. resembles 1.6 in many ways.

Thanks again for the help!
Pages: 1 2 3 [4]