FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Do you all used rewrite mod with Frog ?

Feed 25 posts, 21 voices

Avatar
7 posts

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

 
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

 
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.

 
Avatar
4 posts

Don't use mon_rewrite, running under IIS.

 
Avatar
1493 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).

 
Avatar
541 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']).'/');

 
Avatar
1493 posts

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

David (Edinburgh)

 
Avatar
541 posts

Aucun problème! Toujours un plaisir!

 
Avatar
35 posts

i use mod_rewrite too is very nice

 
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...

 
Avatar
27 posts

+1 for mod_rewrite :)

 
Avatar
4 posts

Yes, I use mod_rewrite

 
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"
    )
 
Avatar
541 posts

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

 
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.

 
Avatar
651 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

 
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

 
Avatar
4 posts

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

 
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.

 
Avatar
316 posts

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

 
Avatar
180 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.

 
Avatar
14 posts

I use mod_rewrite on all of my FROG installs.

 
Avatar
7 posts

I’m using mod_rewrite on Lighttpd :)

 
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

 
Avatar
21 posts

@philippe & Hillt: I am running Lighttpd 1.4.20 and Frog 0.9.4, I have successfully gotten the rewrite to work, except for when expanding child pages in the admin interface. Can either of you help me I am getting an error:

"The requested URL /index.php?/page/children/9/1 was not found on this server."

It looks as if there is hard coded “?” in ajax dropdown, but I am not sure where. Could one of you help me out with a fix for this?