Jump to content
php.lv forumi

.htaccess redirect 301


goma smile

Recommended Posts

tas ir kā "valodas līmenī"? o0 ša, aiziešu pēc tējas un cepumiem un esmu gatavs paklausīties

 

 

header ("Location: http://riga.lv");
exit;

 

 

bet visp'ar, ja ir zinams, ka ir htaccess, tad kaapeec to nedarit ar htaccess? es laikam to dariitu servera galaa.

Edited by rpr
Link to comment
Share on other sites

> tas ir kā "valodas līmenī"? o0 ša, aiziešu pēc tējas un cepumiem un esmu gatavs paklausīties

 

Ja mēs pieņemam, ka valoda ir PHP.

 

Tad:

 

* http://php.net/manual/en/function.http-redirect.php,

* http://php.net/manual/en/function.header.php;

Edited by daGrevis
Link to comment
Share on other sites

> bet visp'ar, ja ir zinams, ka ir htaccess, tad kaapeec to nedarit ar htaccess?

 

Man šķiet, ka lielāka iespēja, ka mainīsies serveris, nevis mainīsies pati valoda.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...