Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support FRIENDLY URLs - Can't connect to MySQL - IIS
1 2
Mescasinos
Posted on 29 Aug 2009, 14:18:53

Access: Member
Total Posts: 6
Joined: 2009-08-29

Hi all! I have a problem here :ermm:

I'm trying to get friendly urls with test.php in the root directory with these settings:

System settings:
Enable friendly URLs: yes
File extension: html
Prefix: /include/news_en/
Directory filename: index.html

htaccess file in my /include/news_en/ directory:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /include/news_en/index.php [L]

htaccess file in my root / directory:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /test.php [L]

code in my test.php file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
<link href="images/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
include 'include/news_en/index.php';
#example 'news/index.php';
?>
</body>
</html>


THE RESULT on test.php
Can't connect to MySQL server on 'localhost' (10061)

I dont understand becose http://www.mescasinos.net/include/news_en/index.php is working.. and i can connect to the admin panel, add news etc.. the script is able to connect to the database, why not with test.php ??

thnka you!! :tongue:
#805
Last edited by Chris at 2009-08-29 23:58:39 Reason:
Chris
Posted on 29 Aug 2009, 16:04:03

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Hi Mescasinos,

I took a look at your server and noticed something about one of the 404 pages

http://mescasinos.net/include/news_en/3/0/fgf.html

Code:
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

Your server is running IIS. Unforunately for friendly URLs to work it would need to be running Apache :sad2:
#806
Mescasinos
Posted on 29 Aug 2009, 16:42:01

Access: Member
Total Posts: 6
Joined: 2009-08-29

Damn idiot hosting company!!! next year i will change for sure!! :tongue:

i didn't look on which server the hosting company was running coz i was thinking that windows server hosting was no more existing due to security..


god damn im hosted by noobs! :pinch:

thank you!! :getlost:

is there something i can do.. or a ireally need to be on apache?
#807
Chris
Posted on 29 Aug 2009, 16:48:10

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Most hosting companies offer both windows and linux hosting, you can always ask them to switch you to the equivalent linux plan.
#808
Mescasinos
Posted on 29 Aug 2009, 19:26:52

Access: Member
Total Posts: 6
Joined: 2009-08-29

I will!! :ermm:
thnks! :fear: :grin:
#809
Mescasinos
Posted on 29 Aug 2009, 19:31:17

Access: Member
Total Posts: 6
Joined: 2009-08-29

Hey, last question.

If I write many news, and i transfert all after and turn FirendlyURLs on, is the old news written will be active or only NEW news will be Friendly URLs ??

:new_huh:
#810
Chris
Posted on 29 Aug 2009, 19:33:00

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Friendly URLs can be disabled and enabled again without causing any problems. If you write your news now then enable friendly URLs later on it'll still work fine.
#811
Mescasinos
Posted on 29 Aug 2009, 20:01:38

Access: Member
Total Posts: 6
Joined: 2009-08-29

Ok that's great!! I really want to use your script, coze i tried many news script and your script is the best for me..


I've turned off Firendly URLs and deleted de htaccess file in root directory, but still get the same error connect but not in the same place.


http://news.mescasinos.net/fr/index.php this is where the script is
work fine.


http://www.mescasinos.net/test.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
</head>

<body>
<?php
include "news/fr/index.php";
?>
</body>
</html>
#812
Chris
Posted on 29 Aug 2009, 20:19:02

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Would it be possible for you to email me access to your server so that I can take look at it? if so you can email me at chris@network-13.com
#813
Mescasinos
Posted on 29 Aug 2009, 20:53:16

Access: Member
Total Posts: 6
Joined: 2009-08-29

done :original:
#814
1 2
Network-13.com © 2013