Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Care-i treaba cu Reddit-ul? (nu m...

Google Maps-directie

Diferente diferentiale

Finala Eurovision 2024
 De ce nu protestati?

Etanșare intre cada perete b...

Back-up box Fronius ?

Router de la Digi nu face fata la...
 Magnolii

Achizitie LG OLED evo 55C31LA - e...

Aplicatii PV Huawei Sun

Istoric deplasari - GPS
 Surub autoforant-metric mixt

Lipsa semnal - strategie de marke...

One week meal plan - Pachet

Apometru defect?
 

redirectionare https://site catre https://www.site

- - - - -
  • Please log in to reply
16 replies to this topic

#1
cirmanuoleg

cirmanuoleg

    Member

  • Grup: Members
  • Posts: 259
  • Înscris: 07.10.2009
salutare
am un site pe care am instalat un certificat ssl
acum vreau sa fac, ca atunci cand cineva accesteaza site.com sa fie redirectionat catre https://www.site.com acum este redirectionat catre https://site.com
am gasit pe internet cate ceva dar funcioneaza pentru siteurile normale fara cetificat ssl
ce trebuei sa fac?
multumesc

#2
gumball3000

gumball3000

    ...

  • Grup: Senior Members
  • Posts: 49,649
  • Înscris: 24.09.2006
Pui asa in .htaccess

Options -Indexes +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.site.ro$ [NC]
RewriteRule ^(.*)$ https://www.site.ro/$1 [L,R=301]

Edited by gumball3000, 10 January 2015 - 13:24.


#3
cirmanuoleg

cirmanuoleg

    Member

  • Grup: Members
  • Posts: 259
  • Înscris: 07.10.2009

View Postgumball3000, on 10 ianuarie 2015 - 13:20, said:

Pui asa in .htaccess

Options -Indexes +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.site.ro$ [NC]
RewriteRule ^(.*)$ https://www.site.ro/$1 [L,R=301]

nu este bine
am pus asa cum zici dar sunt redirectionat catre https://www.ealoever...//ealoevera.ro/
intra se vezi
multumesc

#4
tigerheart

tigerheart

    Savage Member

  • Grup: Senior Members
  • Posts: 9,911
  • Înscris: 07.08.2008
Pune aici tot .htaccess-ul sa vedem ce anume ai scris

#5
cirmanuoleg

cirmanuoleg

    Member

  • Grup: Members
  • Posts: 259
  • Înscris: 07.10.2009
acesta este
<IfModule mod_suphp.c>
  suPHP_ConfigPath /home/ealoevera/public_html
  <Files php.ini>
	order allow,deny
	deny from all
  </Files>
</IfModule>
##
# @package  Joomla
# @copyright Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
# @license  GNU General Public License version 2 or later; see LICENSE.txt
##
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
## Mod_rewrite in use.
RewriteEngine On
## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.
## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects
##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##
# RewriteBase /
## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.

AddType application/x-httpd-php53 .php
php_flag magic_quotes_gpc off
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Options -Indexes +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.ealoevera.ro$ [NC]
RewriteRule ^(.*)$ https://www.ealoevera.ro/$1 [L,R=301]


View Posttigerheart, on 10 ianuarie 2015 - 13:48, said:

Pune aici tot .htaccess-ul sa vedem ce anume ai scris

am pus codul
ms

#6
tigerheart

tigerheart

    Savage Member

  • Grup: Senior Members
  • Posts: 9,911
  • Înscris: 07.08.2008
Eu as folosi codul:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.ealoevera.ro/$1 [R=301,L]


Asa il am setat pe un site de-al meu si merge fara nici o problema.

#7
cirmanuoleg

cirmanuoleg

    Member

  • Grup: Members
  • Posts: 259
  • Înscris: 07.10.2009

View Posttigerheart, on 10 ianuarie 2015 - 13:55, said:

Eu as folosi codul:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.ealoevera.ro/$1 [R=301,L]


Asa il am setat pe un site de-al meu si merge fara nici o problema.

codul meu de mai sus functioneaza, dar doar daca accesez https://ealoevera.ro/ sunt redirectionat catre https://www.ealoevera.ro/
asta e ok, dar eu vrea sa fiu redirectionat catre https://www.ealoevera.ro/ si atunci cand tastezi simplu ealoevera.ro
ms

#8
tigerheart

tigerheart

    Savage Member

  • Grup: Senior Members
  • Posts: 9,911
  • Înscris: 07.08.2008
Tu ai incercat codul meu sa vezi ce face?

#9
cirmanuoleg

cirmanuoleg

    Member

  • Grup: Members
  • Posts: 259
  • Înscris: 07.10.2009

View Posttigerheart, on 10 ianuarie 2015 - 14:07, said:

Tu ai incercat codul meu sa vezi ce face?

uite acum am pus codul tau pe site
este inragula
dar acum de pe https://ealoevera.ro/ nu sunt redirectionat catre https://www.ealoevera.ro/

#10
tigerheart

tigerheart

    Savage Member

  • Grup: Senior Members
  • Posts: 9,911
  • Înscris: 07.08.2008
RewriteEngine On

RewriteCond %{HTTP_HOST} ^ealoevera.ro [NC]
RewriteRule (.*) http://www.ealoevera.ro/$1 [L,R=301]

RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://www.ealoevera.ro/$1 [R=301,L]



#11
cirmanuoleg

cirmanuoleg

    Member

  • Grup: Members
  • Posts: 259
  • Înscris: 07.10.2009

View Posttigerheart, on 10 ianuarie 2015 - 14:25, said:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^ealoevera.ro [NC]
RewriteRule (.*) http://www.ealoevera.ro/$1 [L,R=301]

RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://www.ealoevera.ro/$1 [R=301,L]


am pus acest code si nu intra pe site
zice "The page isn't redirecting properly"

#12
tigerheart

tigerheart

    Savage Member

  • Grup: Senior Members
  • Posts: 9,911
  • Înscris: 07.08.2008
Hmm..
Atunci incearca asa:

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

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.ealoevera.ro/$1 [R=301,L]



#13
cirmanuoleg

cirmanuoleg

    Member

  • Grup: Members
  • Posts: 259
  • Înscris: 07.10.2009

View Posttigerheart, on 10 ianuarie 2015 - 14:33, said:

Hmm..
Atunci incearca asa:

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

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.ealoevera.ro/$1 [R=301,L]


super
multumescfrumos

View Postcirmanuoleg, on 10 ianuarie 2015 - 14:35, said:

super
multumescfrumos

mai am o rugaminte
poti mudifica codul ca si acest ip 89.42.218.86 sa fie redirectionat catre site
multumesc

#14
tigerheart

tigerheart

    Savage Member

  • Grup: Senior Members
  • Posts: 9,911
  • Înscris: 07.08.2008
RewriteEngine On

RewriteCond %{HTTP_HOST} ^89\.42\.218\.86
RewriteRule (.*) http://www.ealoevera.ro/$1 [R=301,L]

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

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.ealoevera.ro/$1 [R=301,L]


Vezi daca merge....

#15
cirmanuoleg

cirmanuoleg

    Member

  • Grup: Members
  • Posts: 259
  • Înscris: 07.10.2009

View Posttigerheart, on 10 ianuarie 2015 - 14:42, said:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^89\.42\.218\.86
RewriteRule (.*) http://www.ealoevera.ro/$1 [R=301,L]

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

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.ealoevera.ro/$1 [R=301,L]


Vezi daca merge....

merge
ms inca o data

#16
tigerheart

tigerheart

    Savage Member

  • Grup: Senior Members
  • Posts: 9,911
  • Înscris: 07.08.2008
Cu placere!

#17
7zeci

7zeci

    Junior Member

  • Grup: Members
  • Posts: 189
  • Înscris: 26.02.2014
Am o problema cred eu asemanatoare,
doresc sa modific doar numele unui fisier din site si sa fac o redirectionare catre acelasi site cu noul nume al fisierului.
momentan
vechiul link este:
http://www.numedomeniu.it/Numevechi/index.php
iar noul link va fi:
http://www.numedomeniu.it/Numenou/index.php

modificarile in site le fac cu Dreamweaver.

am creat un file .htaccess:   "Redirect 301 /Numevechi/index.php http://www.numedomeniu.it/Numenou/index.php"

dar nu am inteles bine unde sa introduc acest fisier .htaccess si nici nu sunt sigur daca l-am scris corect.

Edited by 7zeci, 19 January 2015 - 17:53.


Anunturi

Bun venit pe Forumul Softpedia!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate