Do you all used rewrite mod with Frog ?

Feed 25 posts, 22 voices

Aug 31, 2007 10:43
Avatar
121 posts

I'm interested about this question !!! if you all use frog with mod reqrite I will do some change on the code, like adding automatique pagination detection or things like that.

Thanks to take a little bit of your time to answer this question.

Philippe

 
Oct 12, 2007 01:42
Avatar
7 posts

What's mod rewrite? how do I turn it on? Sorry. I'm REALLY new to server side stuff.

 
Oct 15, 2007 10:33
Avatar
7 posts

this is a apache mod. If it is turned on, you will be able to use the .htaccess file to use the nice URLs (remove the /?/ ) to know how it work I will told you to mak elittle search on google on mod_rewrite apache and/or .htaccess

 
Nov 1, 2007 11:10
Avatar
9 posts

I'm on Dreamhos and I just installed Frog and got mod_rewrite working. I didn't really understand the instructions in the readme file, but after a little work it's working well. My only problem was not editing and renaming the _.htaccess file in the "admin" folder.

 
Nov 7, 2007 09:50
Avatar
4 posts

Don't use mon_rewrite, running under IIS.

 
Nov 11, 2007 12:32
Avatar
818 posts

Yes, I am using ".htaccess" but not successfully, it seems! I have just installed Frog 2.2 under XAMP/WinXP "localhost", and it is working fine. However, my URLs still appear as: "http://localhost/frog/?/articles", for example, including the "/?/".

I have read some docs on .htaccess/mod_rewrite, but can not work out what is wrong! (I have renamed "_.htaccess" to ".htaccess" :)

My installation directory is .../htdocs/frog, and the "RewriteBase" directory is "/frog" (with or without trailing "/" does not seem to make a difference).

 
Nov 11, 2007 13:03
Avatar
382 posts

it is Frog 0.22 ;) and the probleme is ( a little weird to change that file I know) but in your index.php and admin/index.php

you have to manualy uncomment (remove the // at the begining) the line that define the base_url:
//define('BASE_URL', 'http://'.dirname($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']).'/');

 
Nov 11, 2007 16:29
Avatar
818 posts

Merci, Philippe! J'ai oublié cette tâche! :)

David (Edinburgh)

 
Nov 11, 2007 22:30
Avatar
382 posts

Aucun problème! Toujours un plaisir!

 
Nov 14, 2007 00:22
Avatar
20 posts

i use mod_rewrite too is very nice

 
Nov 16, 2007 19:52
Avatar
3 posts

philippe, I'm using mod_rewrite but is not working for me:

.htaccess (renamed) and RewriteBase / for / admin/.htaccess and RewriteBase /admin/

frog is in the root of htdocs (not a folder).

edited both index.php and uncommented BASE_URL, but still fails rendering / and /admin/page/edit/1 with 404 error.

btw, using tadpole...

 
Dec 11, 2007 12:03
Avatar
27 posts

+1 for mod_rewrite :)

 
Dec 11, 2007 23:18
Avatar
4 posts

Yes, I use mod_rewrite

 
Dec 12, 2007 04:48
Avatar
6 posts

Yes I successfully use mod_rewrite with lighttpd.

Here's the config (based on philippes help)

    url.rewrite = (
            "^/(frog|public|public/stylesheets|images|public/js|admin/images|admin/javascripts|admin/stylesheets|admin/themes)/(.*)$" => "/$1/$2",
            "^/admin/(.*)$" => "/admin/index.php?$1",
            "^/(.*)$" => "/index.php?$1"
    )
 
Dec 12, 2007 11:17
Avatar
382 posts

Nice it works ;) HillT :) thank you for posting the right one :)

 
Dec 12, 2007 16:29
Avatar
6 posts

One thing that doesn't seem to work with my url.rewrite in lighttpd: if I try to open children by clicking on "+" in the backend, I got the following message

Not Found The requested URL /?/page/children/11/1 was not found on this server.

 
Mar 15, 2008 14:34
Avatar
396 posts

I'm using mod_rewrite to great effect.

However, the following would best be removed. It is a potential security issue and most decent hosting providers would probably not even allow it. Mine doesn't at any rate and since Frog doesn't need it...

Options +FollowSymLinks

 
Apr 2, 2008 16:00
Avatar
1 posts

Hello,

I'm trying to set up the MOD rewriting on "this website":http://www.kontent.be/AD/ but I get an error;

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@kontent.be and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.37 Server at www.kontent.be Port 80

Any help?

Bart

 
Apr 20, 2008 00:31
Avatar
4 posts

Mod Rewrite is essential unless there is another mechanism that can provide clean urls.

 
Jul 8, 2008 18:09
Avatar
15 posts

almost every php hosting is under linux.so of course it need rewrite_mod,but this version we can't upload any attachment,rewrite mode is no of use.

 
Aug 3, 2008 00:57
Avatar
259 posts

I'm using mod_rewrite on mine. Much prettier without the ? in there. :-)

 
Aug 14, 2008 09:00
Avatar
51 posts

I do not use mod_rewrite and have a small problem: when install frog and set suffix: Articles archive not worked :( Set off suffix in config and all fine.

 
Aug 27, 2008 17:47
Avatar
14 posts

I use mod_rewrite on all of my FROG installs.

 
Sep 12, 2008 08:44
Avatar
7 posts

I’m using mod_rewrite on Lighttpd :)

 
Sep 17, 2008 00:09
Avatar
1 posts

It’s simple! Follow what’ve been said:

(1) define(‘USE_MOD_REWRITE’, true);

(2) _.htaccess change to .htaccess

(3) In .htaccess, change the RewriteBase /frog/ to RewriteBase /

Now, you’ve it! :D