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

Another rewrite problem

Feed 17 posts, 4 voices

Avatar
12 posts

I just installed frog into a folder called cms
I changed RewriteBase /frog to RewriteBase /cms in _.htaccess and renamed the file to .htaccess
I changed define(‘USE_MOD_REWRITE’, false); to define(‘USE_MOD_REWRITE’, true); in config.php
Both files were saved.

The problem is that I can only find my home-page. All other pages (including admin) can’t be found:

Not Found
The requested URL /cms/about_us was not found on this server.

It doesn’t matter if they’re pages I created or pages that came with the installation.

If I change use_mod_rewrite back to false, everything works, but I get those question marks I tried to get rid of.

Can you please help?

 
Avatar
1493 posts

In the .htaccess file, have you changed

  RewriteBase /frog/

to your own Frog location? It could be

  RewriteBase /cms/

or just bare / if Frog is in the root dir.

 
Avatar
12 posts

Did you read my post?

I changed RewriteBase /frog to RewriteBase /cms in _.htaccess and renamed the file to .htaccess

 
Avatar
1493 posts

Did you read my post?

Obviously not carefully enough! (But I was just on the way out to the airport and thought a quick reply was better than none! That’s my story and I’m sticking to it! :)

Meanwhile, you could try changing

  RewriteBase /cms

to

  RewriteBase /cms/

and see if that helps (as in my earlier post). :)

 
Avatar
12 posts

Don’t worry about it :) I tried removing the forward slash at the end. It didn’t help, unfortunately…

Now it looks like this:

In /cms/config.php:

define('USE_MOD_REWRITE', true); 

and in /cms/.htaccess:

RewriteBase /cms 

I can still only find my home page. It’s impossible to find anything else, unless I set rewrite to false. Annoying…

(As is the fact that bq. and bc. doesn’t seem to work in my posts)
[Update: see below!]

 
Avatar
1493 posts

(As is the fact that bq. and bc. doesn’t seem to work in my posts)

They need to start on new lines. I’ve edited your last post so you can see; just use the “edit post” function to take a look. ;)

You do have a frustrating problem there, though. My understanding is that you would need the final slash, but I could well be wrong about that. Could there be anything in the hosting environment? Are you able to give us the live URL to have a look?

 
Avatar
12 posts

Ok :)

The URL is http://heksebua.com/cms

At the momet I’ve disabled rewrite again. Should I enable it, or do you want to have a look first?

 
Avatar
1493 posts

Probably the first thing to do is get the “Blog” section working properly, so you don’t get those error messages on the Homepage and the Blog page. Have a look at how to change the name of the Articles page. It should only take a few minutes. :)

That still won’t help the mod_rewrite problem … which still puzzles me.

How did you upload Frog to your server? as an archive, which you unzipped (or whatever) remotely? or did you expand the archive on a local machine, and then upload the dirs/files that way?

 
Avatar
12 posts

The error message only existed a short period while I changed the layout. It’s fixed now.

I run the server at home, so I have full control. I uploaded a tar.gz and extracted it to the location.

 
Avatar
2 posts

Hi! I’m having the same issue as svehex, so I figured it would be best to use this thread to post about my problem instead of making a new one. I’ve been tinkering with frog for about a week, so I’m pretty much a newbie to it (I like what I’ve seen, though! :) ).

I have no idea what the problem might be… already tried three clean installs (0.9.4) on three different machines, all running apache2, and I’m unable to remove the ? on all of them as instructed in the howto. I even tried with an SVN snapshot to not avail.

I’ve just made a fresh install of 0.9.4 here to test it out, enabling mod_rewrite as it says in the howto. I haven’t changed the layout or anything else.

What I do have noticed is that when I have mod_rewrite enabled this doesn’t work but if I go here it works. Same goes for any other page besides the main page.

If it helps to know, I retrieved a copy of the tarball remotely from the test server.

Thanks in advance for reading this and taking the time to reply. :)

 
Avatar
20 posts

I had similar problem, I changed line define(‘USE_PDO’, true); to false in config.php and it works now.
I’m not sure if it works on you.

 
Avatar
12 posts

It didn’t:
The requested URL /frog/hekseboka.html was not found on this server.
(Changed the name of the folder cms to frog. This site works just fine without rewrite, but not with rewrite.)

 
Avatar
2 posts

Thanks rasmusjoh, but it didn’t work for me either.

ETA: Nevermind, I noticed a parameter in httpd.conf that I hadn’t enabled properly. It works now, so I can go back to tinkering with the system. Thanks.

 
Avatar
12 posts

I use Joomla now