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

Q. How to remove the ? from the urls

Feed 11 posts, 6 voices

Avatar
35 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/

 
Avatar
541 posts

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

define('USE_MOD_REWRITE', true);
 
Avatar
486 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

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

 
Avatar
343 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?

 
Avatar
1493 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?

 
Avatar
343 posts

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

 
Avatar
486 posts

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

 
Avatar
343 posts

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

 
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

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

 
Avatar
18 posts

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