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 13115 Mar 29, 2005, 4:48 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
Alex 13010 Mar 29, 2005, 5:52 PM
Thread Re: [Alex] All dynamic site rewrite to static URLs
Jag 13005 Mar 29, 2005, 6:20 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
Alex 13003 Mar 29, 2005, 7:12 PM
Thread Re: [Alex] All dynamic site rewrite to static URLs
pugdog 12977 Mar 29, 2005, 9:49 PM
Thread Re: [pugdog] All dynamic site rewrite to static URLs
Alex 12949 Mar 29, 2005, 11:15 PM
Post Re: [Alex] All dynamic site rewrite to static URLs
pugdog 12880 Mar 30, 2005, 11:44 AM
Thread Re: [Alex] All dynamic site rewrite to static URLs
Jag 12925 Mar 30, 2005, 2:57 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12789 Apr 14, 2005, 6:34 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12809 Apr 14, 2005, 6:52 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12855 Apr 14, 2005, 8:00 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12827 Apr 14, 2005, 8:13 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12868 Apr 14, 2005, 8:28 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12831 Apr 14, 2005, 8:48 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12790 Apr 14, 2005, 8:56 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12820 Apr 14, 2005, 9:04 PM
Post Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12797 Apr 14, 2005, 9:07 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 12795 Apr 14, 2005, 9:36 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
afinlr 12762 Apr 15, 2005, 12:26 AM
Thread Re: [afinlr] All dynamic site rewrite to static URLs
rgbworld 12765 Apr 15, 2005, 6:08 AM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
rgbworld 12760 Apr 15, 2005, 5:02 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
rgbworld 12759 Apr 15, 2005, 5:19 PM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
rgbworld 12766 Apr 15, 2005, 6:08 PM
Post Re: [rgbworld] All dynamic site rewrite to static URLs
Andy 12675 Apr 16, 2005, 5:22 AM
Thread Re: [rgbworld] All dynamic site rewrite to static URLs
Jag 12789 Apr 16, 2005, 12:37 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
ccunet 3412 Apr 16, 2005, 2:38 PM
Thread Re: [ccunet] All dynamic site rewrite to static URLs
Jag 3350 Apr 18, 2005, 4:15 PM
Post Re: [Jag] All dynamic site rewrite to static URLs
aus_dave 3345 Sep 1, 2005, 7:50 PM
Thread Re: [Jag] All dynamic site rewrite to static URLs
rgbworld 3462 Apr 17, 2005, 9:43 AM
Post Re: [rgbworld] All dynamic site rewrite to static URLs
afinlr 3426 Apr 17, 2005, 11:10 PM