老五在线短网址生成及.htaccess实现子域名重定向

itlao6 随笔 原创 工具&方法 互联网19974字数 529阅读1分45秒阅读模式

因为自己有需要,所以搭建了一个短网址生成工具站点,并且通过.htaccess实现了重定向到子目录,让路径变得更短;另外,在生成短网址的基础上,还生成了对应的二维码,可以保存或者分享给别人...

先来个地址https://dwz.itlao5.com文章源自IT老刘-https://itlao6.com/1782.html

效果图
文章源自IT老刘-https://itlao6.com/1782.html

子域名重定向文章源自IT老刘-https://itlao6.com/1782.html

由于主站点是我的博客站,所以新增了dwz.itlao5.com的子域名,而其对应的站点文件都是放在子目录中,所以使用了htaccess来进行重定向。相关代码如下:文章源自IT老刘-https://itlao6.com/1782.html

RewriteEngine On
RewriteCond %{HTTP_HOST} ^dwz\.itlao5\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/wp/dwz/
RewriteRule ^(.*)$ /wp/dwz/$1?Rewrite [L,QSA]

即:将dwz.itlao5.com指向wp/dwz目录下文章源自IT老刘-https://itlao6.com/1782.html

文章源自IT老刘-https://itlao6.com/1782.html

相关地址文章源自IT老刘-https://itlao6.com/1782.html

IT老五短网址生成https://dwz.itlao5.com文章源自IT老刘-https://itlao6.com/1782.html

IT老五博客站:https://itlao5.com文章源自IT老刘-https://itlao6.com/1782.html

老五VIP影院:https://itlao5.com/wp/video文章源自IT老刘-https://itlao6.com/1782.html

文章源自IT老刘-https://itlao6.com/1782.html

博客:  IT老五    简书:ThinkinLiu文章源自IT老刘-https://itlao6.com/1782.html

文章源自IT老刘-https://itlao6.com/1782.html

文章源自IT老刘-https://itlao6.com/1782.html

IT老五(it-lao5):关注公众号,一起源创,一起学习!文章源自IT老刘-https://itlao6.com/1782.html 文章源自IT老刘-https://itlao6.com/1782.html

weinxin
我的微信公众号
微信扫一扫关注公众号,不定时更新
itlao6
  • 本文由 发表于 2020年 1月 8日 22:58:10
  • 转载请务必保留本文链接:https://itlao6.com/1782.html
评论  19  访客  19
    • WeoldCom
      WeoldCom 6

      :):):)

      • TerryAnnek
        TerryAnnek 6

        Very interesting to read you
        Good luck to you

        • Timothyalelm
          Timothyalelm 6

          Хиты этого года

          • Jamesstirl
            Jamesstirl 6

            Hello. And Bye.

            • Adamhot
              Adamhot 6

              Improve your skill of solving algorithmic problems

              https://codingzone.io/

              • Geraldcexia
                Geraldcexia 6

                The Airport Taxi

                Our professional guarantee – to give you with the most reputable VIP travel experience in Southern Ontario – guides everything we do and is the keystone of the our company brand. Now travel in luxury and comfort with Airport Limo Link’s luxury fleet in Brantford to and from Toronto Pearson International Airport (YYZ). Once known as a bit boring, the city is now all about big business, multiculturalism and a buzzing nightlife. TORONTO — At least six taxi and limo drivers working out of Toronto Pearson International Airport have now died after testing positive for COVID-19, a union representative confirms. Go Transit buses run from Terminal 2 to north Toronto. Pearson International Airport is 27km north west of Toronto. Mission of limo service in Toronto is to provide the best service that is riches to your money. Instead of dealing with hassles like finding a parking spot you get front door service to the airport. Taxis are available 24/7 at the Toronto airport, so you shouldn’t have any problem finding one, even if you have an extra early or late flight. Most bus limousines in Toronto have leather couches, which makes the interior cozy and accommodates the young, the middle aged and the aged just fine.

                • MauroAnype
                  MauroAnype 6

                  Hello. Everybody.I’m a new user in this forum.

                  • Martindut
                    Martindut 6

                    It is very nice to read your site, thank you very much for your work, it’s great!

                    • Angelton
                      Angelton 6

                      It is very nice to read your site, thank you very much for your work, it’s great!

                      • mvhnwzo
                        mvhnwzo 6

                        etisalat elife home internet plans/packages

                        • MatthewDuede
                          MatthewDuede 6

                          [b][/b]

                          • 格子老师
                            格子老师 6

                            格子老师家访!!

                            • Boobiesrew
                              Boobiesrew 6

                              XRumer19.0+XEvil4.0:解决任何验证码的新创新方案

                              1. 强大的Neuronetworks:XEvil OCR可以解决超过12000种不同类型的验证码,
                              包括这样的流行,像谷歌ReCaptcha v2,v3(在XEvil4.0超只!),CaptchaCom,SolveMedia,Bing-Captcha,
                              Facebook的-验证码和Ucoz-验证码,Yandex的-验证码,DLE-验证码,VBulletin-验证码,和很多其他类型的!

                              2. 非常高的速度和精度:识别速度0.01。. 每个图像的0.02秒(但在演示版本中只有1秒!),
                              XEvil可以高精度绕过和解决广泛类型的验证码,
                              不依赖于困难,失真,噪音,字体,颜色。

                              例外的是谷歌ReCaptcha-2,每个解决方案约20-30秒:
                              在ReCaptcha-2需要点击很多图像里面有一个特殊的延迟。

                              3. 非常简单的用户界面:只需3个主要按钮即可开始识别,
                              因此,它很容易与搜索引擎优化,SMM,分析,大规模自动注册,发布,大规模发送,解析,加密货币挖掘程序的广泛的幽灵程序使用。

                              有兴趣?? ;)
                              只需在google”XEvil For Free”中进行搜索即可。
                              免费试用版可用!

                              感谢您的关注! ;)

                                • maobook.cn
                                  maobook.cn 6

                                  @ Boobiesrew 我的HTTPS后,网页就不正常了,该怎么改

                                • 博客大全
                                  博客大全 6

                                  博客大全特邀站长前来入住!!!!http://www.bokedaquan.net/

                                    • Thinkin
                                      Thinkin

                                      @ 博客大全 (:good:) 这个不错

                                    • 外星人源码商城
                                      外星人源码商城 6

                                      要是域名能短一点就好了

                                        • Thinkin
                                          Thinkin

                                          @ 外星人源码商城 短域名申请不到啊 :-D 不过相对于那种上百个字符的网址来说,这个已经很短了

                                        • Thinkin
                                          Thinkin

                                          在线生成二维码,缩短url网址
                                          https://dwz.itlao5.com

                                        匿名

                                        发表评论

                                        匿名网友

                                        :?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

                                        确定