Yes, exactly like that but when translating the page cannot be found and you get my oops page if i choose spanish i get this url www.thecodecage.com/es/ is this where the error is?
Yes, exactly like that but when translating the page cannot be found and you get my oops page if i choose spanish i get this url www.thecodecage.com/es/ is this where the error is?
I think that some lines from this htaccess file cause this issue (not vBET rules).
hmm what happens when you comment lines after vBET rules:
you can test if for all rules (except vBET rules)Code:RewriteCond %{HTTP_REFERER} !^http://skype.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://skype.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://thecodecage.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://thecodecage.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.paypal.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.paypal.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.skype.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.skype.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.co.uk/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.co.uk$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/images/avatars/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/images/avatars$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/golf/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/golf$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.eu/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.eu$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.org/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.org$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
I removed all of those but still cannot find the page? (get my oops page)
When i use this as .htaccess it works but i need the other rules, can you help?RewriteEngine on
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ index.php?language=$1&vbet_outside=true [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]
rewritecond %{query_STRING} !vbet_outside=true
RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
laptop about to run out now will be back on tomorrow
Hi.
Perhaps rules which are before vBET rules made redirection first so you get page not found. vBET rules are not active at all. That is why when you removed rules before it starts working. Please just try to put vBET rules before others and see how it is working.
But first please try go back to what you had here and just remove this:
You added conditions for vBET rule and perhaps this is why first rule is not working - and first rule is for main page. Please check it.Code:RewriteCond %{HTTSP_REFERER} !^https://www.paypal.com/.*$ [NC] RewriteCond %{HTTPS_REFERER} !^https://www.paypal.com$ [NC]
Last edited by vBET; 18-05-11 at 03:46.
Thanks for your continued help, the PayPal redirect was not preventing it working, but after much trial and error this is what worked, i replaced this:for this:RewriteEngine on
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>
<IfModule mod_rewrite.c>
#RewriteBase /blog/
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /blog/index.php [L]and it works, although i now need to work out how to get the page not found redirect to go back to the oops page but i can live with what i have for nowRewriteEngine on
<ifmodule mod_headers.c>
<ifmodule mod_deflate.c>
# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>
</ifmodule>
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/$ index.php?language=$1&vbet_outside=true [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]
rewritecond %{query_STRING} !vbet_outside=true
RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
<IfModule mod_rewrite.c>
#RewriteBase /blog/
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /blog/index.php [L]![]()
can you confirm that this is solved now? I was on your site and translation works good
Kamil, as far as vBET is concerned it is solved as my vbulletin powered page outside of the forum root now translates. The remaining issue is now mine in order to redirect a url that isn't found to my custom page.
So please mark this solved![]()
thanks for your confirmation - solved!![]()