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

homepage redirect
(1 Online) (1) Ospite
  • Pagina:
  • 1
  • 2

ARGOMENTO: homepage redirect

homepage redirect 6 Anni, 4 Mesi fa #2339

  • farsheed
  • Offline
  • Fresh Boarder
  • Messaggi: 13
Hi I'm trying to redirect from sitename.com/ to www.sitename.com/

I can't get it to work.

and if possible I'd like to do it for the rest of my site too. so that there are no URLS without www. on my site.

Thank you.

homepage redirect 6 Anni, 4 Mesi fa #2340

  • farsheed
  • Offline
  • Fresh Boarder
  • Messaggi: 13
Hi

I'm trying to redirect my homepage and if possible my entire site from sitename.com/ to www.sitename.com/


how can I do this?

please help

Re: homepage redirect 6 Anni, 4 Mesi fa #2352

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
With this version no.

ReDJ works on REQUEST_URI, so the domain part is ignored.

I'm planning to support full source url in the next version.

But you can do this with a simple rewrite rule in .htaccess file.

Best regards,
Luigi

Re: homepage redirect 6 Anni, 4 Mesi fa #2356

  • farsheed
  • Offline
  • Fresh Boarder
  • Messaggi: 13
Thx for your replay.. however I'm a lill dumb when it comes to the Htaccess file.


wat do I need to type in the htacces file? and where?

another question is does this website have an English version. .. it's hard to navigate around

Re: homepage redirect 6 Anni, 4 Mesi fa #2357

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
I'm working on a new english site dedicated to Joomla extensions..

Anyway, in the .htaccess file you shoudl add this just after RewriteEngine On:

## Add www. to all URLs
RewriteCond %{HTTP_HOST} !^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]


If you need this also for https:

RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]


Luigi

Re: homepage redirect 6 Anni, 4 Mesi fa #2358

  • farsheed
  • Offline
  • Fresh Boarder
  • Messaggi: 13
Thank you ,

however, am I suppose to replace any of that code with my website name ? ..

cuz after I inserted that code .. I typed in jetsettravel.ca in my browser .. and it redirects to this

www..com/


thank you

Re: homepage redirect 6 Anni, 4 Mesi fa #2359

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Maybe it can't get the cond backreference. Try this:

## Add www. to all URLs
RewriteCond %{HTTP_HOST} !^www\.(.+)$ [NC]
RewriteRule ^/(.*) http://www.jetsettravel.ca/$1 [R=301,L]


Let me know,
Luigi
Ultima modifica: 6 Anni, 4 Mesi fa Da admin.

Re: homepage redirect 6 Anni, 4 Mesi fa #2360

  • farsheed
  • Offline
  • Fresh Boarder
  • Messaggi: 13
nope ..

same thing

redirects to the same www..com/

Re: homepage redirect 6 Anni, 4 Mesi fa #2361

  • farsheed
  • Offline
  • Fresh Boarder
  • Messaggi: 13
nope.. I still get the same thing ..

it redirects to www..com

Re: homepage redirect 6 Anni, 4 Mesi fa #2362

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Send me your .htaccess file at info(at)sistemistica.it
  • Pagina:
  • 1
  • 2
Moderatori: admin
Tempo generazione pagina: 0.60 secondi
News
Cerca con Google
Chi è online
 48 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.