Home Forum
2024-12-22
Benvenuto, Ospite
Nome Utente Password: Ricordami

Mass Redirect after Changing menu
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Mass Redirect after Changing menu

Mass Redirect after Changing menu 13 Anni, 10 Mesi fa #1799

  • Masoud
  • Offline
  • Fresh Boarder
  • Messaggi: 10
Hi,
I'm using Joomla 1.5.22 with SEF enabled and K2 Extension for content, I have almost 300 articles that have been indexed by Google and other search engine

Now
I want to change menu arrangement and I want to bring out some sub categories out of the main categories and make them easy to find and emphasis them.

I've studied alot about apache and tried to do this by Apache's mod_redirect and .htaccess and write some redirect rules like

RewriteRule ^articles/video-audio/digital-camera/item/([0-9]+)-(.*)$ www.zoomit.ir/home/av/digital-camera/item/$1-$2 [R=301,L]

but does not work

I Want to know is it possible to do this sort of jobs with the ReDJ Extension or not If Yes How? I've read all of the documents of ReDJ but I did not get anything useful

Your kind advice will be highly appreciated.
Masoud,
L'Argomento è stato bloccato.

Re: Mass Redirect after Changing menu 13 Anni, 10 Mesi fa #1801

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
HI,
ReDJ was created just for this. If you send me a table with OLD -> NEW URLs, I could help you with settings. Use info(at)sistemistica.it of you prefer.

Best regards,
Luigi
Ultima modifica: 13 Anni, 10 Mesi fa Da admin.
L'Argomento è stato bloccato.
Ringraziano per il messaggio: Masoud

Re: Mass Redirect after Changing menu 13 Anni, 10 Mesi fa #1803

  • Masoud
  • Offline
  • Fresh Boarder
  • Messaggi: 10
Luigi, Thank you so much for your interesting response.

I just want to inform you that I have many articles in each menu and I do not want to redirect one by one.

for example
I want to bring out table out of the hardware-news category:
www.zoomit.ir/articles/hardware-news/tablet/

so URLs like this:
www.zoomit.ir/articles/hardware-news/tablet/item/400-galaxy_tab_gets_hacked_finally_runs_gingerbread

should be redirect to:
www.zoomit.ir/articles/tablet/item/400-galaxy_tab_gets_hacked_finally_runs_gingerbread

as you know the 400 is the id and the text after that is allies of SEF

Thank you so much for pursuing.
L'Argomento è stato bloccato.

Re: Mass Redirect after Changing menu 13 Anni, 10 Mesi fa #1805

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
It's easy with macros.

From URL:/articles/hardware-news/tablet/item/
To URL: http://{siteurl}/articles/{pathltrim /articles/hardware-news/}


It should work.

Best regards,
Luigi
L'Argomento è stato bloccato.
Ringraziano per il messaggio: Masoud

Re: Mass Redirect after Changing menu 13 Anni, 10 Mesi fa #1806

  • Masoud
  • Offline
  • Fresh Boarder
  • Messaggi: 10
awesome!

Work Perfectly, I do not how should I Thank you

well done.
L'Argomento è stato bloccato.

Re: Mass Redirect after Changing menu 13 Anni, 9 Mesi fa #1995

  • druth
  • Offline
  • Fresh Boarder
  • Messaggi: 3
This solution works wonderfully... except.

Every page under the root folder works great, but the root folder itself does not.

I redirected /about-us/ to /about/ using the above method

"thescriptlab.com/about-us/bios" redirects wonderfully, but "thescriptlab.com/about-us/" does not.
L'Argomento è stato bloccato.

Re: Mass Redirect after Changing menu 13 Anni, 9 Mesi fa #1997

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
For the root folder you could use the dollar ($) at the end of the "From URL" to specify that "ends with". As example:

From URL: ^/about-us/$


This item matchs only with www.yoursite.com/about-us/, while DOESN'T match with www.yoursite.com/about-us/contact.html.

Anyway, if you get trouble, send me the items you configured, and I will fix them for you.

Best regards,
Luigi
L'Argomento è stato bloccato.

Re: Mass Redirect after Changing menu 13 Anni, 9 Mesi fa #1998

  • druth
  • Offline
  • Fresh Boarder
  • Messaggi: 3
I just discovered that if I remove the trailing "/" in all forms of the address, it works like a dream.

so:

in: /about-us
out: {scheme}://{siteurl}/about{pathltrim /about-us}

Thanks so much, awesome product.
L'Argomento è stato bloccato.

Re: Mass Redirect after Changing menu 13 Anni, 9 Mesi fa #1999

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Yes,
and if you want the perfection, just add the parameters (if there) so you preserve them:

in: /about-us
out: {scheme}://{siteurl}/about{pathltrim /about-us}{queryfull}

Beste regards,
Luigi
L'Argomento è stato bloccato.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.50 secondi
Cerca con Google
News
Chi è online
 210 visitatori online
Sponsor

slotmachineaamsonline.com è una guida alle migliori slot machine online legali in Italia. Sul sito trovi un elenco sempre aggiornato dei casino online con Slot machine e bonus slot, le ultime novità dal mondo delle slot online e le migliori strategie per vincere. Inoltre, è disponibile una sezione dedicata alle slot machine da BAR che finalmente sono disponibili nella versione online.