Advanced search  

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

Pages: [1]   Go Down

Author Topic: Updating after 301  (Read 3427 times)

0 Members and 1 Guest are viewing this topic.

xen

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Current Affairs Herald
Updating after 301
« 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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Updating after 301
« Reply #1 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.
Logged

xen

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Current Affairs Herald
Re: Updating after 301
« Reply #2 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.
Logged

xen

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Current Affairs Herald
Re: Updating after 301
« Reply #3 on: March 25, 2007, 12:52:21 am »

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

Nibbler

  • Guest
Re: Updating after 301
« Reply #4 on: March 25, 2007, 02:17:28 am »

Post a link and the redirection code you have used.
Logged

xen

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Current Affairs Herald
Re: Updating after 301
« Reply #5 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]
Logged

Nibbler

  • Guest
Re: Updating after 301
« Reply #6 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
Logged

xen

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Current Affairs Herald
Re: Updating after 301
« Reply #7 on: March 25, 2007, 02:53:36 am »

Replace

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

with

RedirectMatch permanent ^(.*)$ http://currentaffairsherald.com$1
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.