It works without the url rewrite but i can't figure out how to make the search url rewrite work correctly with languages.
Thank you.
Multiple Languages
Re: Multiple Languages
Honestly the best way it to take a quick look at mod_rewrite docs, you need just basic knowledge to create new rewrites and you'll need it a lot if you want to create your own rewrites.
Don't forget to run script update
Re: Multiple Languages
I think there is a bug.
If you enable synonyms, It creates different slug for each language in one gallery.
Then slug= won't work correctly.
If you enable synonyms, It creates different slug for each language in one gallery.
Then slug= won't work correctly.
Re: Multiple Languages
Indeed it creates a different slug for each language but for a reason.
&slug=...&force_lng=... should
did you check it ?
&slug=...&force_lng=... should
did you check it ?
Don't forget to run script update
Re: Multiple Languages
I found the solution to make search rewrite work on multilingual:
Code: Select all
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^search/([^/]+)/$ /scj/cgi/out.php?link=images/&%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&search=$1&order=ctr [L]
RewriteRule ^search/([^/]+)/$ /scj/tube/index.php?search=$1&order=ctr&search_type=query [L]
RewriteRule ^search/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/cgi/out.php?link=images/&%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&search_type=$1&search=$2&order=$3&page=$4 [L]
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^search/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/cgi/out.php?link=images/&%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&search_type=$1&search=$2&order=$3&page=$4 [L]
RewriteRule ^search/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ /scj/tube/index.php?search_type=$1&search=$2&order=$3&page=$4 [L]
RewriteRule ^action/(.*)/(.*)/$ /scj/tube/index.php?action=$1&action_params=$2 [L]
Re: Multiple Languages
So actually the issue was rewrites, not the script?
Don't forget to run script update
Re: Multiple Languages
Yes it was working without the rewrite but i couldn't make it work with it.
Re: Multiple Languages
I notice my sql database is very big. Do having multiple languages increase a lot the sql database size? Even if i use the same descriptions for all languages?
I have Own category stats and Own thumb stats as no and categories not splitted and one thumb per gallery.
I just need languages for category translations, languages redirect and translate few words in the template ( with the language template ).
I have 120k galleries and the database is 6gb. I don't need one gallery description per language.
My dedicated server is often going down because of it.
If you could add this option to have the same desc for all languages, and not create data for each language of each gallery, it would reduce dramatically the size of the sql database. It would be great.
Thank you.
I have Own category stats and Own thumb stats as no and categories not splitted and one thumb per gallery.
I just need languages for category translations, languages redirect and translate few words in the template ( with the language template ).
I have 120k galleries and the database is 6gb. I don't need one gallery description per language.
My dedicated server is often going down because of it.
If you could add this option to have the same desc for all languages, and not create data for each language of each gallery, it would reduce dramatically the size of the sql database. It would be great.
Thank you.







