4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2010, 12:54:52 PM

Login with username, password and session length
Search:     Advanced search
Translate this page with google
=>
 Translate this page with Google =>
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Help / Hilfe
| |-+  Bug Fixes & Patches
| | |-+  [1.7 - 1.7.2] Extra backslash in URLs ( http://example.com\/index.php )
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: [1.7 - 1.7.2] Extra backslash in URLs ( http://example.com\/index.php )  (Read 9763 times)
V@no
Don't tell me what to do and I won't say where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 16729

Thank You
-Given: 13
-Receive: 81

mmm PHP...


View Profile WWW
« on: April 11, 2006, 03:10:09 AM »

On some servers that is running Windows OS, some URLs can get an extra backslash, which in some cases could produce 404 error.
If you are NOT experiencing such problem, you dont need apply this fix


In global.php find:
1
  $script_url .= (dirname($PHP_SELF) != "/") ? dirname($PHP_SELF) : "";

Replace it with:
1
2
  $dirname = str_replace("\\", "/", dirname($PHP_SELF));
  $script_url .= ($dirname != "/") ? $dirname : "";
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
piqs.de - Fotocommunity & lizenzfreie Fotos