Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite rules break theme's lightbox #70

Open
spiritedsnowcat opened this issue Nov 25, 2020 · 1 comment
Open

Rewrite rules break theme's lightbox #70

spiritedsnowcat opened this issue Nov 25, 2020 · 1 comment

Comments

@spiritedsnowcat
Copy link

spiritedsnowcat commented Nov 25, 2020

Hi there,

It appears the rewrite rules used in this extension break my theme's lightbox. When the page tries to load "https://cooldown.dev/styles/ravaio/template/lg-fullscreen.min.js?assets_version=41", it returns a 404 error. After disabling the rewrite rule changes again, it resolves itself. Here're the rules I have:

RewriteBase /
RewriteRule ^(.*)-f([0-9]*)/mcp.php(.*) mcp.php?%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)-f([0-9]*)/(.*)-t([0-9]*)-s([0-9]*).html viewtopic.php?f=$2&t=$4&start=$5&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*)/(.*)-t([0-9]*).html viewtopic.php?f=$2&t=$4&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*)/index-s([0-9]*).html viewforum.php?f=$2&start=$3&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*)/ viewforum.php?f=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*) viewforum.php?f=$2&%{QUERY_STRING} [L]

I'm not entirely sure which rule is breaking it, but it seems like it might be from adding "?assets_version=41" to the end of it. Any tips / suggestions would be appreciated. Thanks!

@spiritedsnowcat spiritedsnowcat changed the title Rewrite rules breaks theme's lightbox Rewrite rules break theme's lightbox Nov 25, 2020
@spiritedsnowcat
Copy link
Author

Fixed it?

RewriteBase /
RewriteRule ^(.*)-f([0-9]*)/mcp.php(.*) mcp.php?%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)-f([0-9]*)/(.*)-t([0-9]*)-s([0-9]*).html viewtopic.php?f=$2&t=$4&start=$5&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*)/(.*)-t([0-9]*).html viewtopic.php?f=$2&t=$4&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*)/index-s([0-9]*).html viewforum.php?f=$2&start=$3&%{QUERY_STRING} [L]

RewriteRule ^(styles)($|/) - [L]
RewriteRule ^(.*)-f([0-9]*)/ viewforum.php?f=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-f([0-9]*) viewforum.php?f=$2&%{QUERY_STRING} [L]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant