• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 2.x Branch ‹ General Support (v2.x)
  • Change font size
  • FAQ
  • Register
  • Login

Another mod_rewrite problem

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

Another mod_rewrite problem

Postby gfh » Mon May 13, 2013 7:19 pm

Hi,

I'm running:
Apache 2.2.22
PHP 5.3.10-1ubuntu3.6
phpFreeChat 2.1.0
mod_rewrite is enabled

I'm trying to run the chat from within a page in my Drupal CMS. I can see the chat box, but I'm getting this error:

mod_rewrite must be enabled server side and correctly configured. "RewriteBase" could be adjusted in server/.htaccess file.


I found the .htaccess file in /phpfreechat-2.1.0/server and uncommented the RewriteBase line to read:

Code: Select all
RewriteBase /phpfreechat-2.1.0/server


...which corresponds to the folder name on my server. I tried it with and without a trailing slash and the results are the same.

Any idea what I'm doing wrong?
gfh
New member
 
Posts: 1
Joined: Mon May 13, 2013 7:13 pm
Top

Re: Another mod_rewrite problem

Postby colchao » Wed Jun 19, 2013 9:55 pm

have you find an answer to this problem ?
I am facing the exactly same problem.
colchao
New member
 
Posts: 1
Joined: Wed Jun 19, 2013 9:54 pm
Top

Re: Another mod_rewrite problem

Postby demian » Tue Oct 22, 2013 10:34 am

I have the same problem, i am not a newbie in php / apache land..
Have made several custom chats with phpfreechat in the past with own written loginsystems but i can't get this to work.

What is going wrong? Tell me.

Mod_rewrite is on
I have some simple html file


Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="nl">

<head> 
<script src="/client/lib/jquery-1.8.2.min.js" type="text/javascript"></script>
 <link rel="stylesheet" type="text/css" href="/client/themes/default/jquery.phpfreechat.min.css" />
  <script src="/client/jquery.phpfreechat.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="/client/themes/default/jquery.phpfreechat.min.css" />
</head>
<body>
<div id="mychat"><a href="http://www.phpfreechat.net">Creating chat rooms everywhere - phpFreeChat</a></div>
<script type="text/javascript">
 
  $('#mychat').phpfreechat({ serverUrl: '/server' });
</script>
 
</body>
</html>


No .htaccess file in root

in /server/.htaccess i have this

Code: Select all
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /server
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

<Limit OPTIONS GET POST PUT DELETE>
  Order allow,deny
  Allow from all
</Limit>



Having the error as described in the first post.
demian
Member
 
Posts: 14
Joined: Tue Sep 09, 2008 7:40 pm
Top

Re: Another mod_rewrite problem

Postby Craig Borten » Tue Oct 29, 2013 7:24 am

No solution for this yet?
Craig Borten
New member
 
Posts: 2
Joined: Tue Oct 29, 2013 7:23 am
Top

Re: Another mod_rewrite problem

Postby phpfreechat » Thu Oct 31, 2013 9:47 pm

Currently, I am unable to reproduce the problem localy.
If someone who has the problem could give me acces to his server where phpfreechat is installed, I could debug this problem.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v2.x)

Who is online

Users browsing this forum: No registered users and 2 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub