I have static pages for all my categories, but I want them to be dynamic so when I add links in the admin it will show without me building, I know I have to use the mod_rewrite to get that but how do I do it
Nov 4, 2004, 2:11 AM
Veteran / Moderator (17366 posts)
Nov 4, 2004, 2:11 AM
Post #2 of 23
Views: 1409
Hopefully this post will help;
http://www.gossamer-threads.com/...i?post=269599#269599
Basically, you need to make a .htaccess file, and upload it to your appropriate folder. The mod_rewrite code I provided in the above URL **MAY** work as-is ... but more than likely, it will require a little tweaking, to get it working on your site right.
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
http://www.gossamer-threads.com/...i?post=269599#269599
Basically, you need to make a .htaccess file, and upload it to your appropriate folder. The mod_rewrite code I provided in the above URL **MAY** work as-is ... but more than likely, it will require a little tweaking, to get it working on your site right.
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Nov 4, 2004, 10:51 AM
User (162 posts)
Nov 4, 2004, 10:51 AM
Post #3 of 23
Views: 1396
Thanks Andy,
I just add the .htaccess file with this in it
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/page.cgi?p=$1 [L]
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
RewriteRule ^$ /cgi-bin/page.cgi [L]
and I put it in the folder where all the pages are created
I just added a link but it is not showing on the category page unless I build it, how do I avoid this
I just add the .htaccess file with this in it
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/page.cgi?p=$1 [L]
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
RewriteRule ^$ /cgi-bin/page.cgi [L]
and I put it in the folder where all the pages are created
I just added a link but it is not showing on the category page unless I build it, how do I avoid this
Nov 4, 2004, 11:03 AM
Veteran / Moderator (17366 posts)
Nov 4, 2004, 11:03 AM
Post #4 of 23
Views: 1394
Try adding this;
...just before;
Probably a better way... but that should work :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Code:
RewriteRule ^/?$ /cgi-bin/page.cgi [L]...just before;
Code:
RewriteRule ^$ /cgi-bin/page.cgi [L]Probably a better way... but that should work :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Nov 4, 2004, 11:18 AM
User (162 posts)
Nov 4, 2004, 11:18 AM
Post #5 of 23
Views: 1392
Hi Andy,
Still not working,
When I add a new link it always appears in the globals like Recently_Modified links without me building but does not show up in my static pages for the categories unless I build all
Here is what I currently i have in my .htaccess file
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/page.cgi?p=$1 [L]
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
RewriteRule ^/?$ /cgi-bin/page.cgi [L]
RewriteRule ^$ /cgi-bin/page.cgi [L]
Still not working,
When I add a new link it always appears in the globals like Recently_Modified links without me building but does not show up in my static pages for the categories unless I build all
Here is what I currently i have in my .htaccess file
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/page.cgi?p=$1 [L]
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
RewriteRule ^/?$ /cgi-bin/page.cgi [L]
RewriteRule ^$ /cgi-bin/page.cgi [L]
Nov 5, 2004, 12:15 AM
Veteran / Moderator (17366 posts)
Nov 5, 2004, 12:15 AM
Post #6 of 23
Views: 1381
Shoot over FTP details, and I'll take a look for you quickly
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Nov 5, 2004, 9:14 AM
Veteran / Moderator (17366 posts)
Nov 5, 2004, 9:14 AM
Post #8 of 23
Views: 1366
Should all be fixed up now :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Nov 9, 2004, 10:00 AM
Veteran / Moderator (17366 posts)
Nov 9, 2004, 10:00 AM
Post #10 of 23
Views: 1341
Yup :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Dec 12, 2004, 2:21 AM
Veteran / Moderator (17366 posts)
Dec 12, 2004, 2:21 AM
Post #12 of 23
Views: 1266
RewriteRule ^p/(.*)\.html /cgi-bin/page.cgi?p=$1
...should be that easy :)
Then call with;
http://www.yourdomain.com/p/page_name.html .. which would equate to http://www.yourdomain.com/cgi-bin/page.cgi?p=page_name
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
...should be that easy :)
Then call with;
http://www.yourdomain.com/p/page_name.html .. which would equate to http://www.yourdomain.com/cgi-bin/page.cgi?p=page_name
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Dec 12, 2004, 10:33 AM
User (162 posts)
Dec 12, 2004, 10:33 AM
Post #13 of 23
Views: 1262
Thank Andy,
It works but as this
http://www.yourdomain.com/p/page_name
not with the .html like this
http://www.yourdomain.com/p/page_name.html
because that gives me an error like this
A fatal error has occured:
It works but as this
http://www.yourdomain.com/p/page_name
not with the .html like this
http://www.yourdomain.com/p/page_name.html
because that gives me an error like this
A fatal error has occured:
Invalid SiteHTML method: 'site_html_aboutus.html'. at /home/xxxxxxxx/xxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxx/cgi-bin/admin/Links/SiteHTML.pm line 241.Please enable debugging in setup for more details.
Dec 13, 2004, 12:03 AM
Veteran / Moderator (17366 posts)
Dec 13, 2004, 12:03 AM
Post #14 of 23
Views: 1253
mmm.. you sure?
Try;
RewriteRule ^p/(.*).html /cgi-bin/page.cgi?p=$1
As far as I can see, $1 should just hold the filename... which is all you need to pass along (or you get the error about the function not existing).
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Try;
RewriteRule ^p/(.*).html /cgi-bin/page.cgi?p=$1
As far as I can see, $1 should just hold the filename... which is all you need to pass along (or you get the error about the function not existing).
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Dec 27, 2004, 1:03 AM
Veteran / Moderator (17366 posts)
Dec 27, 2004, 1:03 AM
Post #16 of 23
Views: 1217
You would need to change the build_category_sort option in Setup > Build Options. Add something like this to the BEGINING;
Add_Date ASC
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Add_Date ASC
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Dec 27, 2004, 9:04 AM
Veteran / Moderator (17366 posts)
Dec 27, 2004, 9:04 AM
Post #18 of 23
Views: 1210
No problem. Your text issue is probably down to IE. Try clicking View > Text Size > Medium
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
I've inserted your code exactly as is in my .htaccess file and modified the extension to .php instead of .html as I use .php as the extention of the built pages (through lqsl setup).
Everything seems to work Ok, however, since I use also two additional parameters in the URL, then how would I add them to the mod rewrite code?
the additional parameters are:
lang and t are preserved parameters:
so the code that I have in .htaccess looks something like this below... but can u please review it see where should I do the changes... and whether I am refering to images and css correctly ..?
thanks much
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/linkssql/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/linkssql/page.cgi?p=$1 [L]
RewriteRule ^(.*).php /cgi-bin/linkssql/page.cgi?g=$1.php [L]
RewriteRule ^/?$ /cgi-bin/page.cgi [L]
RewriteRule ^$ /cgi-bin/linkssql/page.cgi [L]
Everything seems to work Ok, however, since I use also two additional parameters in the URL, then how would I add them to the mod rewrite code?
the additional parameters are:
Code:
&lang=ru&t=russianlang and t are preserved parameters:
so the code that I have in .htaccess looks something like this below... but can u please review it see where should I do the changes... and whether I am refering to images and css correctly ..?
thanks much
Code:
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/linkssql/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/linkssql/page.cgi?p=$1 [L]
RewriteRule ^(.*).php /cgi-bin/linkssql/page.cgi?g=$1.php [L]
RewriteRule ^/?$ /cgi-bin/page.cgi [L]
RewriteRule ^$ /cgi-bin/linkssql/page.cgi [L]
Jul 6, 2006, 5:28 PM
Veteran / Moderator (17366 posts)
Jul 6, 2006, 5:28 PM
Post #22 of 23
Views: 888
Hi,
the additional parameters are:
It depends really :)
You could modify it so you use a URL like;
http://www.yourdomain.com/links/englsh/en/Category_Name/
...etc,
and then change the rewrite rules to;
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/p/(.*) /cgi-bin/linkssql/page.cgi?g=$3;lang=$2;t=$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/info/(.*) /cgi-bin/linkssql/page.cgi?p=$3;lang=$2;t=$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/(.*).php /cgi-bin/linkssql/page.cgi?g=$3.php;lang=$2;t=$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/?$ /cgi-bin/page.cgi?lang=$2;t=$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/$ /cgi-bin/linkssql/page.cgi?lang=$2;t=$1 [L]
as well as;
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/linkssql/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/linkssql/page.cgi?p=$1 [L]
RewriteRule ^(.*).php /cgi-bin/linkssql/page.cgi?g=$1.php [L]
RewriteRule ^/?$ /cgi-bin/page.cgi [L]
RewriteRule ^$ /cgi-bin/linkssql/page.cgi [L]
Totally untested, but will hopefully get you on the right trail :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote:
since I use also two additional parameters in the URL, then how would I add them to the mod rewrite code? the additional parameters are:
It depends really :)
You could modify it so you use a URL like;
http://www.yourdomain.com/links/englsh/en/Category_Name/
...etc,
and then change the rewrite rules to;
Code:
RewriteEngine On RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/p/(.*) /cgi-bin/linkssql/page.cgi?g=$3;lang=$2;t=$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/info/(.*) /cgi-bin/linkssql/page.cgi?p=$3;lang=$2;t=$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/(.*).php /cgi-bin/linkssql/page.cgi?g=$3.php;lang=$2;t=$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/?$ /cgi-bin/page.cgi?lang=$2;t=$1 [L]
RewriteRule ^([english|russian|french])/([en|ru|fr])/$ /cgi-bin/linkssql/page.cgi?lang=$2;t=$1 [L]
as well as;
Code:
RewriteRule (.*)\.css $1.css [L] RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^p/(.*) /cgi-bin/linkssql/page.cgi?g=$1 [L]
RewriteRule ^info/(.*) /cgi-bin/linkssql/page.cgi?p=$1 [L]
RewriteRule ^(.*).php /cgi-bin/linkssql/page.cgi?g=$1.php [L]
RewriteRule ^/?$ /cgi-bin/page.cgi [L]
RewriteRule ^$ /cgi-bin/linkssql/page.cgi [L]
Totally untested, but will hopefully get you on the right trail :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Jul 16, 2006, 8:28 PM
User (335 posts)
Jul 16, 2006, 8:28 PM
Post #23 of 23
Views: 869
I have two languages (en, ru) only, and two templates (english, russian),
and I am calling them from the following URL:
...page.cgi?d=1&lang=ru&t=russian
or
...page.cgi?d=1&lang=en&t=english
and I feel something wrong here in g=$3...etc... I do not know really what it means...
I hope you can correct this script for me....
truely appricaitated...
Mark
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^([english|russian])/([en|ru])/p/(.*) /cgi-bin/linkssql/page.cgi?g=$3;lang=$2;t=$1 [L]
RewriteRule ^([english|russian])/([en|ru])/info/(.*) /cgi-bin/linkssql/page.cgi?p=$3;lang=$2;t=$1 [L]
RewriteRule ^([english|russian])/([en|ru])/(.*).php /cgi-bin/linkssql/page.cgi?g=$3.php;lang=$2;t=$1 [L]
RewriteRule ^([english|russian])/([en|ru])/?$ /cgi-bin/page.cgi?lang=$2;t=$1 [L]
RewriteRule ^([english|russian])/([en|ru])/$ /cgi-bin/linkssql/page.cgi?lang=$2;t=$1 [L]
and I am calling them from the following URL:
...page.cgi?d=1&lang=ru&t=russian
or
...page.cgi?d=1&lang=en&t=english
and I feel something wrong here in g=$3...etc... I do not know really what it means...
I hope you can correct this script for me....
truely appricaitated...
Mark
Code:
RewriteEngine On
RewriteRule (.*)\.css $1.css [L]
RewriteRule ^images/(.*) images/$1 [L]
RewriteRule ^AddImages/(.*) AddImages/$1 [L]
RewriteRule ^Images/(.*) Images/$1 [L]
RewriteRule ^([english|russian])/([en|ru])/p/(.*) /cgi-bin/linkssql/page.cgi?g=$3;lang=$2;t=$1 [L]
RewriteRule ^([english|russian])/([en|ru])/info/(.*) /cgi-bin/linkssql/page.cgi?p=$3;lang=$2;t=$1 [L]
RewriteRule ^([english|russian])/([en|ru])/(.*).php /cgi-bin/linkssql/page.cgi?g=$3.php;lang=$2;t=$1 [L]
RewriteRule ^([english|russian])/([en|ru])/?$ /cgi-bin/page.cgi?lang=$2;t=$1 [L]
RewriteRule ^([english|russian])/([en|ru])/$ /cgi-bin/linkssql/page.cgi?lang=$2;t=$1 [L]

