Radio Streaming - 50% Lifetime Discount with purchase of any Joomla Web Radio Addon. Discount Code: STR15-Z
See Radio Streaming Plans

Results 1 to 2 of 2

Thread: htaccess redirect σε .www

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    12

    htaccess redirect σε .www

    Έχω μια ερώτηση.
    Πως θα κάνω την σελίδα μου σε shared hosting, μέσω .htaccess,
    όταν κάποιος πληκτρολογεί το domain χωρίς www,
    να ανακατευθύνεται υποχρεωτικά στο domain με www

    Δηλαδή,
    http://mydomain.gr
    να πηγαίνει υποχρεωτικά
    http://www.mydomain.gr

  2. #2
    Super Moderator
    Join Date
    Mar 2012
    Posts
    183
    Καλησπέρα, βάλε στο htaccess τα ακόλουθα και φυσικά αντικατέστησε το mydomain.gr με το δικό σου domain:

    RewriteEngine on # Αυτή την γραμμή την προσθέτεις μόνο αν δεν προϋπάρχει στο αρχείο .htaccess

    RewriteCond %{HTTP_HOST} ^mydomain\.gr$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.mydomain\.gr$
    RewriteRule ^(.*)$ "http\:\/\/www\.mydomain\.gr\/$1" [R=301,L]
    Support Operator
    MultiHosting.com

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •