Topic: URL rewrite does'nt work

I just installed PunBB 1.3 and changed the URL scheme to "File based". I have also changed the .htaccess file as described on the settings page. But now none of my forum links seem to work. I cant even login to the forum anymore. Please help!

Forum link: http://www.sprakresa.org/forum

2 (edited by Parpalak 2009-10-14 09:39)

Re: URL rewrite does'nt work

Seems like file "rewrite.php" is missing. Try to upload it from the installation package.

Re: URL rewrite does'nt work

Parpalak wrote:

Seems like file "rewrite.php" is missing. Try to upload it from the installation package.

Thanks for your advice! The file was not missing. But just to be sure I have uploaded it again. Still not working. Any ideas?

Re: URL rewrite does'nt work

Check the RewriteBase parameter. Maybe it is set in .htaccess somewhere above PunBB rewrite rules. Or try to set your own correct value.

Re: URL rewrite does'nt work

Hmm.. I'm not too technical and not sure what to do. I have placed the original .htaccess file (renamed) in the forum root folder (public_html/forum/). Is this not correct?

Re: URL rewrite does'nt work

In most cases yes, but actually it depends on your hosting settings.

Try to uncomment RewriteBase and to set this value in .htaccess, line 10 (or something similar, if this doesn't work):

RewriteBase /forum/

If you want to disable the url rewrite, rename .htaccess back, then go to www.sprakresa.org/forum/login.php, login and turn off the url rewrite in the admin panel.

Re: URL rewrite does'nt work

Sorry, but what do you mean by "Uncomment"?

Re: URL rewrite does'nt work

Sorry, it must be a kind of slang smile

I meant to remove the '#' character from line 10. This character means comment beginning. After '#' everything is ignored to the end of line.

In .htaccess.dist "RewriteBase" is commented (by the '#' character) because in most cases it's unnecessary.

Re: URL rewrite does'nt work

YES! Now everything works just fine. Many thanks!  smile