phpBB only needs the .htaccess that it comes with, in its own folder.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.
You now have the opposite problem from your previous topic.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.
This is the .htaccess that hosting Tech Support put in public_html.From what you can tell, could it cause the problem with the urls on /testphpbb?Code:
RewriteEngine OnRewriteCond %{REQUEST_URI} !^/phpbb/RewriteRule ^(.*)$ /phpbb/$1 [L,R=301]
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