Updating after 301 Updating after 301
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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