forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: xen on March 25, 2007, 12:20:07 am

Title: Updating after 301
Post by: xen on March 25, 2007, 12:20:07 am
I have just done a 301 on my site to my other site on the same server(Linux). But the Gallery URL is still showing the old URL. How can I update the old gallery URL to the new one??

Thanx
Xen
Title: Re: Updating after 301
Post by: Tranz on March 25, 2007, 12:39:33 am
I'm not sure where it is that "the Gallery URL is still showing the old URL". To update gallery config, if that's what you want, go to Config. The setting is in the first section or so.
Title: Re: Updating after 301
Post by: xen on March 25, 2007, 12:48:20 am
I mean that I have redirected the whole site, including coppermine(/gallery) to another site on the same server. My site is showing the the new URL, but the /gallery URL is still showing the old sites /gallery URL.
Title: Re: Updating after 301
Post by: xen on March 25, 2007, 12:52:21 am
I have updated the URL in the config section, but still showing the old URL.
Title: Re: Updating after 301
Post by: Nibbler on March 25, 2007, 02:17:28 am
Post a link and the redirection code you have used.
Title: Re: Updating after 301
Post by: xen on March 25, 2007, 02:22:11 am
RedirectMatch permanent ^/$ http://currentaffairsherald.com

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://www.xennamgyal.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.xennamgyal.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://xennamgyal.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://xennamgyal.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://currentaffairsherald.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://currentaffairsherald.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.currentaffairsherald.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.currentaffairsherald.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
Title: Re: Updating after 301
Post by: Nibbler on March 25, 2007, 02:45:25 am
Right, so you redirected only the main site. To redirect everything use:

Code: [Select]
RedirectMatch permanent ^(.*)$ http://currentaffairsherald.com$1
Title: Re: Updating after 301
Post by: xen on March 25, 2007, 02:53:36 am
Replace

RedirectMatch permanent ^/$ http://currentaffairsherald.com

with

RedirectMatch permanent ^(.*)$ http://currentaffairsherald.com$1