php - Saved browser links prepend a period -
php - Saved browser links prepend a period -
i maintain old web app built procedural php. (read spaghetti)
in order trigger mobile style sheets etc, pre-prended url 'm'.
all of sudden, saved bookmarks , home screen icon links not working properly.
inspection of url appears proper. but...
instead of loading
http://m.mysite.com
it loads
.m.mysite.com
and fails.
like said, editing , inspecting url looks proper, no matter try, "http://" gets replaced period.
i tried inserting little function in first loaded file check first character. if it's period, replace 'http://', doesn't nail page. clicking mobile url shortcut in desktop browser works fine.
i have iphone6 test with, i'm beingness told android devices doing same thing.
enviroment: intovps apache/2.2.16 (debian) php version 5.3.3-7
does have thought why of sudden change? haven't touched code in years , affecting mobile users. if create new link in note or email, works fine. affects bookmarks saved in browser, or shortcut links on home screen, newly created shortcuts. bizarre.
.htaccess
errordocument 404 /notfound.php options -indexes
php html apache http
Comments
Post a Comment