Q. How to remove the ? from the urls

Feed 11 posts, 6 voices

Jan 26, 2008 14:48
Avatar
20 posts

When mod_rewrite is working, urls for frog look like this

http://www.website.com/?/menu/?/salads/...

how does one remove those extra ? so that the url will be http://www.website.com/menu/salads/

 
Jan 26, 2008 16:03
Avatar
382 posts

this is not suposed to do that ... set in the config.php file, USE_MOD_REWRITE to true:

define('USE_MOD_REWRITE', true);
 
May 1, 2008 22:51
Avatar
286 posts

I don't really understand the instructions set in config.php:

// true or false (will remove the ? in the URL. You have to removed the _ before _.htaccess // and set the RewriteBase (there is 2 htacces file (the other one is in the admin directory)) define('USE_MOD_REWRITE', false);

I did set it to true but now i get 404 everywhere.

please help!

i don't see any .htaccess files

 
May 1, 2008 23:30
Avatar
286 posts

actually i found the .htaccess file in the main directory, but i don't see one in the admin directory. but it seems to work fine now even though i didn't find that other one.

 
May 2, 2008 04:01
Avatar
276 posts

Ricks, do you get 404 error or a 500 ? Did you renamed _.htaccess to .htaccess and then modified this line in config.php : [code] define('USE_MOD_REWRITE', false); [/code] to [code] define('USE_MOD_REWRITE', true); [/code] And what software do you use for localhost? If your using Xampp or Appserv, the .htaccess file won't work. Do you have mod_rewrite activated in you php.ini?

 
May 2, 2008 04:42
Avatar
820 posts

@Bdesign: btw, you can use Markdown to format your post. It is very easy to use, once you know a few basics! I think you are trying to use BBcode?

 
May 2, 2008 04:47
Avatar
276 posts

Yep, I was trying to use BBcode :D . I think I have to learn it, as I am using Frog :D .

 
May 2, 2008 09:30
Avatar
286 posts

it's workign okay now, Bdesign. thanks. though i never found the other .htaccess file. it doesn't seem to make a difference

 
May 2, 2008 11:19
Avatar
276 posts

You're welcome ricks. I experienced too some problems on localhost...

 
Jun 4, 2008 16:50
Avatar
18 posts

I have some problems to remove the question mark on my little testsite. I get a 500 error... I removed the underscore from the _.htaccess file and adjusted the line of code in the config.php file. A second _.htacces file I couldn't find in my admin folder... Is there anybody that can help me?

thx

 
Jun 4, 2008 17:21
Avatar
820 posts

Did you edit the .htaccess file so that the "base directory" is correct? For me, for example, in the .htaccess file I have this line:

RewriteBase /

because Frog lives in the root directory of the website. If you have Frog living somewhere else, you might need to change that line. I think it reads RewriteBase /frog/ by default.

Something to check, anyway....

 
Jun 4, 2008 18:00
Avatar
18 posts

that solved the problem. Thx for the quick reply on this David.