2010-06-05, 08:17:55
(This post was last modified: 2010-06-05, 08:18:36 by katiepecbvda.)
pauloc Wrote:Yes, I'm using mod_rewrite.I made something with .htaccess and it works on my server.
Quote:I was thinking about functionality with mod_rewrite, but didn't try it yet. I will fix this, I'll have to add some lines to .htacces probably, and just set it choose to work with ? and & (if it's disabled) or with mod_rewrite (if enabled), depending on GS configuration.This would be great.
Thanks for your efforts.
Download lik is updated, archive re-attached
You can change your .htaccess file to this (of course edit RewriteBase):
Quote:AddDefaultCharset UTF-8
RewriteEngine on
RewriteBase /test/scripts/GS-test/
RewriteRule /?([A-Za-z0-9-]+)/([0-9])/?$ index.php?do=$1&newsid=$2 [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([0-9]+)/?$ index.php?id=$1&do=$2&newsid=$3 [QSA]
But, I will make it to recognize your old .htaccess file and to alter it according to nSys needs