Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1788

[3.3.x] Support Forum • Re: .htaccess and test forum

$
0
0
It seems like any redirects should be in the phpBB .htaccess itself, and there shouldn't need to be an .htaccess in public_html. Am I wrong? Shouldn't the redirects all be in one place in the phpBB .htaccess? But I haven't been able to make it work and I keep putting it back the way hosting Tech Support did it.
phpBB only needs the .htaccess that it comes with, in its own folder.

What happens is, when I try to see my files installed in /testphpbb by navigating to http://example.com/testphpbb the url changes to http://example.com/phpbb/testphpbb. :shock:

This is the .htaccess that hosting Tech Support put in public_html.

Code:

RewriteEngine OnRewriteCond %{REQUEST_URI} !^/phpbb/RewriteRule ^(.*)$ /phpbb/$1 [L,R=301]
From what you can tell, could it cause the problem with the urls on /testphpbb?
You now have the opposite problem from your previous topic.

You're encountering these problems because the rule is extremely broad and is set to match on everything. The ^(.*)$ in your rule is telling it to match all possible URLs, there's no filtering except to exclude URLs that already have /phpbb/ in it. Any other URL it sees will have /phpbb/ added to the front.

It sounds like your host doesn't really know what they're doing based on your last topic. The web root should be public_html and you shouldn't need any .htaccess files in there to do redirection.

Statistics: Posted by Noxwizard — Wed Oct 02, 2024 10:39 pm



Viewing all articles
Browse latest Browse all 1788

Trending Articles