Home Forum
2017-11-20
Menu principale
Prodotti
Giochi a premi
Accedi ai servizi
Newsletter
Ricezione
Benvenuto, Ospite
Nome Utente Password: Ricordami

Host name appears twice in URL
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: Host name appears twice in URL

Host name appears twice in URL 5 Anni, 9 Mesi fa #3006

  • erikj
  • Offline
  • Fresh Boarder
  • Messaggi: 2
Hi,

I'm using ReDJ to do simple redirects for articles that have moved. The resutling URLs for some reason repeat the host name in the resulting url. For example:

From URL: /personnel/greg.html
To URL: http://{siteurl}/people/greg.html

Result: www.sci.utah.edu/personnel/www.sci.utah.edu/people/greg.html
Should be: www.sci.utah.edu/people/greg.html

Do you know why this is happening and how I can fix it?

Erik

Re: Host name appears twice in URL 5 Anni, 9 Mesi fa #3008

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Erik,
this is really strange.

Could you send me a dump of redj table at info(at)sistemistica.it? Also a screenshot of plugin settings could be useful.

Thanks,
Luigi

Re: Host name appears twice in URL 5 Anni, 9 Mesi fa #3013

  • erikj
  • Offline
  • Fresh Boarder
  • Messaggi: 2
Luigi,

Thanks for getting back to me. I think this is actually a browser related issue. I'm using Firefox 9.0.1. When I tried it on a friend's machine and on IE, everything worked properly. This morning when I tried it again on my machine it worked fine. Maybe something cached was messing things up... In any case, it seems to be working now with the destination link appearing as expected. Here is a redirected link that was producing the behavior for me yesterday but is working for me now. See what happens for you:
www.sci.utah.edu/personnel/greg.html

If I have it happens again I'll get back with the table and screenshot. Otherwise we'll call it good.

Thanks.

Erik

Re: Host name appears twice in URL 5 Anni, 9 Mesi fa #3016

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Erik,
I get redirected to www.sci.utah.edu/people/greg.html.

So I guess problem is solved...

Re: Host name appears twice in URL 5 Anni, 7 Mesi fa #3181

  • Martin
  • Offline
  • Fresh Boarder
  • Messaggi: 8
Hi,

I get a similar problem on my website, the 301-redirect doesnt work. In my category news, I have two nested categories, as (an example) cars and boats. I also use SEO-friendly URLs.

I tried to redirect an URL Google grabbed one time I (for some minutes) posted an article in wrong category, before I recognised that and switched the same article over to the correct category. I wish to redirect this url:

www.mydomain.com/cars/250-my-article-about-boats.html

to this:

www.mydomain.com/boats/250-my-article-about-boats.html

But next time I tried to put the wrong URL in to my browser and click enter, that URL unfortunately still are in my browser.

And what is more strange, is that the breadcrumbs instead of show "Home - Cars - My article about boats", now shows this path:

Home - Cars - News - News about boats - My article about boats

I will be very grateful if someone can help with a solution for this problem.
Ultima modifica: 5 Anni, 7 Mesi fa Da Martin.

Re: Host name appears twice in URL 5 Anni, 7 Mesi fa #3184

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
just install ReDJ, enable plugin and create a rule as follow (literally):

From URL: ^/cars/250-my-article-about-boats.html$
 
To URL: http://{siteurl}/boats/250-my-article-about-boats.html


Kind regards,
Luigi

Re: Host name appears twice in URL 5 Anni, 7 Mesi fa #3187

  • Martin
  • Offline
  • Fresh Boarder
  • Messaggi: 8
Thanks for your reply

It doesnt help to write From URL: "^/cars/250-my-article-about-boats.html$"

It seems that this first redirect i created, are disturbed by some stuff in the database (or somewhere else). Before I found and installed your excellent plugin, I made an unsuccessful attempt to use mod rewrite in the .htacces-file. The problem was that I got incorrect output for the URL. The URL was like the output I now get with the RedJ redirect, but with path from the root. The .htaccess-file have been reset to its original form, so I don't think the problem are in the .htacces-file. But maybe I have to clean up something in the database? But that's not ReDJ-related.

I have now used your tool and made some hundreds of other redirects of the same type as the first one, and them all works very well (except the first one).

However, I have challenges with other addresses where the URL starts with the correct URL, but with some other stuff added in the end of the URL. The supplement doesn't disappear when I try to redirect to the correct URL:

Redirect from "/boats/250-my-article-about-boats.html?sms_ss=facebook&at_xt=4dc491f5d3 ..." to "www.mydomain.com/boats/250-my-article-about-boats.html" gives the output: "http:www.mydomain.com/boats/250-my-article-about-boats.html?sms_ss=facebook&at_xt=4dc491f5d3 ..." The same with adresses as "www.mydomain.com/boats/250-my-article-about-boats.html?tmpl=component&layout=default&page=" etc.

Do you have a solution for this?

So, another question, is it very important that we not use the complete URL in the from address, included: "www.mydomain.com" ?

And why do you put ^ and $ respectively before and after "/cars/250-my-article-about-boats.html", is that important? The guide in the plugin (mouse pointer over), says:

“Insert the source URL you need to redirect, without the domain (…) and just put /oldpage.html”

I thought it would be like this: "/cars/250-my-article-about-boats.html"
Ultima modifica: 5 Anni, 7 Mesi fa Da Martin.

Re: Host name appears twice in URL 5 Anni, 7 Mesi fa #3191

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi Martin,
to check why redirections didn't work I need the dump of ReDJ table. Send me an email at info(at)sistemistica.it.

If the ReDJ version you are using is the last for Joomla 2.5 then you have an option "request only" that allows you to specify if ReDJ should consider the whoel URL or just the request part (drop the domain). For oldest version, only the second option is supported. And the tutorial refers to this old version (I have not upgraded it yet).

Kind regards,
Luigi

Re: Host name appears twice in URL 5 Anni, 7 Mesi fa #3193

  • Martin
  • Offline
  • Fresh Boarder
  • Messaggi: 8
Hi Luigi,

Many thanks for your reply.

I've tried different settings without success, but when I now use the from address "^/cars/250-my-article-about-boats.html$" and with "Request Only" enabled in my Joomla 2.5, (and after deleting of cache both for the website and on my computer, also this redirection works properly.
Ultima modifica: 5 Anni, 7 Mesi fa Da Martin.

Re: Host name appears twice in URL 5 Anni, 7 Mesi fa #3194

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
If it works, then it works
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 1.20 secondi
News
Cerca con Google
Chi è online
 56 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.