Všechno Nové

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Přihlásit se


Všechno Nové Přihlásit se

All gists matching topic web-dev

Nedávno Vytvořeno
Nejméně nedávno Vytvořeno
Nedávno Aktualizováno
Nejméně nedávno Aktualizováno

timmy / 🚀 網站轉址全攻略:前後端 redirect 一次看懂!

0 Lajky
0 Forky
6 Soubory
Naposledy aktivní 8 months ago
從 Express、Flask 到 PHP、HTML 與 JavaScript,轉址技巧一次收下!快轉跳轉不求人 ✨
backend express flask frontend html javascript php redirect web-dev
1 const express = require('express');
2 const app = express();
3
4 app.get('/oldpage', (req, res) => {
5 res.redirect('https://www.newpage.com');
6 });
7
8 app.listen(3000, () => {
9 console.log('Server is running on port 3000');
10 });
Novější Starší

Vytvořeno pomocí Opengist ⋅ Load: 37ms⋅

Čeština
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文