如何重新写一些长网址给shprter网址

时间:2017-04-28 14:22:09

标签: url mod-rewrite long-integer

好吧,我在.htaccess在我的网站的根目录 -

import sys

from PyQt5.QtWidgets import QMainWindow, QPushButton, QApplication, QMessageBox

class MainWindow(QMainWindow):
    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)
        self.button = QPushButton('Click me!')
        self.setCentralWidget(self.button)

        self.button.clicked.connect(self.btnClicked)

    def btnClicked(self):
        QMessageBox.information(self, 'New document', 
            "New document is being created...", QMessageBox.Ok)


if __name__ == '__main__':
    app = QApplication(sys.argv)
    mainWindow = MainWindow()
    mainWindow.show()
    app.exec_() 

我仍在尝试404 wh4en尝试www.site.co/home.html

为什么?

1 个答案:

答案 0 :(得分:0)

您应该将第二个(.*)替换为$1(第一个捕获括号的内容)。