Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Alex] All dynamic site rewrite to static URLs

Quote Reply
Re: [Alex] All dynamic site rewrite to static URLs In reply to
Alex,

I've found that to use the static rewrite, you need to check the box "update others" so that the new, cool, etc paths also point to the /rewritten/ directory. Otherwise, you get a category not found error.
You can also do that manually, but it's tedious.

After dong that, you need to set your image directory back to where it was.

With the 2.99, you have to reset the static directory paths as well.

But, all my sites are using the static-look dynamic generation.

I might be using different rewrite rules, but they are the ones we worked out years ago :)

Code:
RewriteRule ^/$ /newdir/ [R,L,NC]
RewriteRule ^/newdir/?$ /newdir/

<Directory /home/user/domain.com/www/newdir/>
Options All -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
RewriteEngine On
RewriteRule (.*) /cgi-bin/links/page.cgi?g=$1 [L]
AllowOverride All
Allow From All
</Directory>


This is in the httpd.conf/domain config files, not an .htaccess

I prefer that set up, since .htaccess files can lead to confusion, and once set up, this should never have to change.

There are duplicate RewriteEngine On lines.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread All dynamic site rewrite to static URLs Jag 13343 Mar 29, 2005, 4:48 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
Alex 13239 Mar 29, 2005, 5:52 PM
Thread Re: [Alex] All dynamic site rewrite to static URLs
Jag 13233 Mar 29, 2005, 6:20 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
Alex 13231 Mar 29, 2005, 7:12 PM
Thread Re: [Alex] All dynamic site rewrite to static URLs
pugdog 13206 Mar 29, 2005, 9:49 PM
Thread Re: [pugdog] All dynamic site rewrite to static URLs
Alex 13178 Mar 29, 2005, 11:15 PM
Post Re: [Alex] All dynamic site rewrite to static URLs
pugdog 13107 Mar 30, 2005, 11:44 AM
Thread Re: [Alex] All dynamic site rewrite to static URLs
Jag 13153 Mar 30, 2005, 2:57 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 13017 Apr 14, 2005, 6:34 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 13037 Apr 14, 2005, 6:52 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 13083 Apr 14, 2005, 8:00 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 13056 Apr 14, 2005, 8:13 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 13097 Apr 14, 2005, 8:28 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 13058 Apr 14, 2005, 8:48 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 13018 Apr 14, 2005, 8:56 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 13048 Apr 14, 2005, 9:04 PM
Post Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 13025 Apr 14, 2005, 9:07 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 13023 Apr 14, 2005, 9:36 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
afinlr 12991 Apr 15, 2005, 12:26 AM
Thread Re: [afinlr] All dynamic site rewrite to static URLs
rgbworld 12994 Apr 15, 2005, 6:08 AM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
rgbworld 12988 Apr 15, 2005, 5:02 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
rgbworld 12986 Apr 15, 2005, 5:19 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
rgbworld 12994 Apr 15, 2005, 6:08 PM
Post Re: [rgbworld] All dynamic site rewrite to static URLs
Andy 12903 Apr 16, 2005, 5:22 AM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 13018 Apr 16, 2005, 12:37 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
ccunet 3462 Apr 16, 2005, 2:38 PM
Thread Re: [ccunet] All dynamic site rewrite to static URLs
Jag 3400 Apr 18, 2005, 4:15 PM
Post Re: [Jag] All dynamic site rewrite to static URLs
aus_dave 3395 Sep 1, 2005, 7:50 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 3513 Apr 17, 2005, 9:43 AM
Post Re: [rgbworld] All dynamic site rewrite to static URLs
afinlr 3476 Apr 17, 2005, 11:10 PM