Welcome, Guest. Please login or register.

Author Topic: Salutare, intrebare legata despre " redirect 301 www"  (Read 1380 times)  Share 

0 Members and 1 Guest are viewing this topic.

Offline ProfuNT

  • Jr. Member
  • **
  • Posts: 143
  • Reputation: +3/-30
    • View Profile
    • Retete Culinare
Salutare, intrebare legata despre " redirect 301 www"
« on: January 03, 2015, 12:41:55 AM »
Buna seara, in seara asta am lansat un website culinar, ideea este ca, daca vreau sa ii fac redirect 301, este non www. si setez pentru a fi www. da eroare ( asta daca o fac prin plugin ex. simple redirect ) daca insertez codul in .htacces iarasi eroare ... ce e de facut ? Multumesc

ArenaWeb

Salutare, intrebare legata despre " redirect 301 www"
« on: January 03, 2015, 12:41:55 AM »

Offline play

  • A State of Trance
  • Hero Member
  • *****
  • Posts: 1329
  • Reputation: +107/-200
  • Bagati mare la minusuri, stiu ca puteti!
    • View Profile
    • Muzica Noua
Re: Salutare, intrebare legata despre " redirect 301 www"
« Reply #1 on: January 03, 2015, 01:03:15 AM »
Ce eroare da?


Code: [Select]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Offline ProfuNT

  • Jr. Member
  • **
  • Posts: 143
  • Reputation: +3/-30
    • View Profile
    • Retete Culinare
Re: Salutare, intrebare legata despre " redirect 301 www"
« Reply #2 on: January 03, 2015, 01:34:14 AM »
Reuseste careva sa modifice asta :)) ?
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]   


as dori exemplu cu un url oarecare ...

Offline ProfuNT

  • Jr. Member
  • **
  • Posts: 143
  • Reputation: +3/-30
    • View Profile
    • Retete Culinare
Re: Salutare, intrebare legata despre " redirect 301 www"
« Reply #3 on: January 03, 2015, 02:05:37 AM »
Warning:  is_writable(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/iret:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/iret/public_html/wp-admin/includes/misc.php on line 170
 
 Warning:  Cannot modify header information - headers already sent by (output started at /home/iret/public_html/wp-admin/includes/misc.php:170) in /home/iret/public_html/wp-includes/pluggable.php on line 1178

eroarea cand schimb cu www. din OPTIUNI - GENERAL din wp admin

Offline gogule

  • Hostimm.com
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6265
  • Reputation: +1005/-306
  • Gender: Male
  • Daca iti este lene, atunci plateste.
    • View Profile
    • Immdomain
Re: Salutare, intrebare legata despre " redirect 301 www"
« Reply #4 on: January 03, 2015, 02:36:58 AM »
nu uita dupa ce ai facut modificarea in wp-admin, mergi la permanent link si regenereaza htaccess. apoi iti va merge.

Offline ProfuNT

  • Jr. Member
  • **
  • Posts: 143
  • Reputation: +3/-30
    • View Profile
    • Retete Culinare
Re: Salutare, intrebare legata despre " redirect 301 www"
« Reply #5 on: January 03, 2015, 02:55:27 AM »
Nu am opțiune de regenerare htaccess ..

Offline gogule

  • Hostimm.com
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6265
  • Reputation: +1005/-306
  • Gender: Male
  • Daca iti este lene, atunci plateste.
    • View Profile
    • Immdomain
Re: Salutare, intrebare legata despre " redirect 301 www"
« Reply #6 on: January 03, 2015, 02:57:20 AM »
Nu am opțiune de regenerare htaccess ..


just click save....

Offline play

  • A State of Trance
  • Hero Member
  • *****
  • Posts: 1329
  • Reputation: +107/-200
  • Bagati mare la minusuri, stiu ca puteti!
    • View Profile
    • Muzica Noua
Re: Salutare, intrebare legata despre " redirect 301 www"
« Reply #7 on: January 03, 2015, 01:13:47 PM »
Auzi, da ai incercat asa?
http://i.imgur.com/aEoQ583.png
Pui la setari cu www, si isi face redirect pe www.

Offline ProfuNT

  • Jr. Member
  • **
  • Posts: 143
  • Reputation: +3/-30
    • View Profile
    • Retete Culinare
Re: Salutare, intrebare legata despre " redirect 301 www"
« Reply #8 on: January 03, 2015, 01:51:34 PM »
Am facut sigur! :)

Offline ProfuNT

  • Jr. Member
  • **
  • Posts: 143
  • Reputation: +3/-30
    • View Profile
    • Retete Culinare
Re: Salutare, intrebare legata despre " redirect 301 www"
« Reply #9 on: January 03, 2015, 01:54:51 PM »
Am rezolvat, facutem o greseala eu in .htacces :)). VA MULTUMESC TUTUROR ! :)

Tags: