Updating after 301 Updating after 301
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Updating after 301

Started by xen, March 25, 2007, 12:20:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xen

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

Tranz

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.

xen

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.

xen

I have updated the URL in the config section, but still showing the old URL.

Nibbler

Post a link and the redirection code you have used.

xen

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]

Nibbler

Right, so you redirected only the main site. To redirect everything use:

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

xen

Replace

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

with

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