pa to jst ne znam - sm živi butl za programiranje :D jst si sam želim da je ta stran s šumniki
redirectana na isto domeno brez šumnika. ah, ko bi le delal 301 redirect.
na godaddy supportu so mi povedal da rabim dva fajla - en je .htaccess, drugi pa php fajl
php fajl naj bi se imenoval hiša.php (ali tista s wn.. sej ne vem)
koda pa nja bi bila takšna:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.hisa.si/");
exit();
?>
.htaccess pa tak:
RewriteEngine on
rewritecond %{http_host} xn--hisa-euc.si/ [nc]
rewriterule (.*)$ http://www.hisa.si/$1 [r=301,nc]
tole so njihova navodila:
PHP
Save this as oldpagename.php
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.newdomain.com/newpage.html");
exit();
?>
.htaccess
When using a Linux server with the Apache Mod-Rewrite module enabled, you can create a .htaccess file to ensure that all requests to coolexample.com will redirect to www.coolexample.com, where "coolexample.com" is your domain. Save the .htaccess file in your old website's root directory, which is the same directory as your index file. You can create a .htaccess file with the following code:
RewriteEngine on
rewritecond %{http_host} coolexample.com [nc]
rewriterule (.*)$ http://www.coolexample.com/$1 [r=301,nc]
fora je v tem, da jaz nimam newpage.html ampak gre direktno na root folder
bila bi zelo hvaležna, če mi omagaš :) s temi stavki se ukvarjam že dva dni :D