Updating after 301 Updating after 301
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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