MOD REWRITE

Not sure WHY this mod rewrite does not work on https://cubinero.org ? It WAS working, now doesn’t. I can enter any of the rewrite URLs directly in address bar and it prints the HTML fine…BUT if I upload the .htaccess file no workie.

suPHP_ConfigPath /home/cubinero/public_html/
DirectoryIndex index.html index.php

ExpiresActive On
ExpiresDefault “access plus 10 days”
ExpiresByType text/css “access plus 1 week”
ExpiresByType text/plain “access plus 1 month”
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
ExpiresByType application/x-javascript “access plus 1 month”
ExpiresByType application/javascript “access plus 1 week”
ExpiresByType application/x-icon “access plus 1 year”

RewriteEngine On

RewriteEngine On RewriteCond %{SERVER_PORT} ^80$ RewriteRule (.*) https://cubinero.org/$1 [R=301,L]

RewriteRule ^(en|sq|ar|am|az|bn|bu|zh|dz|fr|de|el|hi|in|it|ja|kh|ko|la|ms|mn|np|ps|pr|pt|ru|es|tl|ta|th|tr|ur|vi)($|/(.*)$) $2?language=$1&%{QUERY_STRING} [L]

RewriteCond %{QUERY_STRING} (^|&)p=2(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=2&(.)
RewriteRule ^ /microcredit/lend.html? [R=301,L]
RewriteRule microcredit/lend.html(/?)$ index.php?p=2&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=65(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=65&(.)
RewriteRule ^ /microcredit/press.html? [R=301,L]
RewriteRule microcredit/press.html(/?)$ index.php?p=65&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=64(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=64&(.)
RewriteRule ^ /microcredit/newsletter.html? [R=301,L]
RewriteRule microcredit/newsletter.html(/?)$ index.php?p=64&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=67(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=67&(.)
RewriteRule ^ /microcredit/intern.html? [R=301,L]
RewriteRule microcredit/intern.html(/?)$ index.php?p=67&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=26(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=26&(.)
RewriteRule ^ /microcredit/gift-cards.html? [R=301,L]
RewriteRule microcredit/gift-cards.html(/?)$ index.php?p=26&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=38(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=38&(.)
RewriteRule ^ /microcredit/donate.html? [R=301,L]
RewriteRule microcredit/donate.html(/?)$ index.php?p=38&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=6(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=6&(.)
RewriteRule ^ /microcredit/contact.html? [R=301,L]
RewriteRule microcredit/contact.html(/?)$ index.php?p=6&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=47(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=47&(.)
RewriteRule ^ /microcredit/borrow.html? [R=301,L]
RewriteRule microcredit/borrow.html(/?)$ index.php?p=47&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=48(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=48&(.)
RewriteRule ^ /microcredit/why-cubinero.html? [R=301,L]
RewriteRule microcredit/why-cubinero.html(/?)$ index.php?p=48&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=3(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=3&(.)
RewriteRule ^ /microcredit/how-it-works.html? [R=301,L]
RewriteRule microcredit/how-it-works.html(/?)$ index.php?p=3&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=4(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=4&(.)
RewriteRule ^ /microcredit/faq.html? [R=301,L]
RewriteRule microcredit/faq.html(/?)$ index.php?p=4&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=62(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=62&(.)
RewriteRule ^ /microcredit/team.html? [R=301,L]
RewriteRule microcredit/team.html(/?)$ index.php?p=62&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=69(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=69&(.)
RewriteRule ^ /microcredit/testimonials.html? [R=301,L]
RewriteRule microcredit/testimonials.html(/?)$ index.php?p=69&nr=1 [QSA]

RewriteCond %{QUERY_STRING} (^|&)p=79(&|$)
RewriteCond %{QUERY_STRING} !(^|&)nr=1($|&)
RewriteCond %{QUERY_STRING} !(.)p=79&(.)
RewriteRule ^ /microcredit/microcredit.html? [R=301,L]
RewriteRule microcredit/microcredit.html(/?)$ index.php?p=79&nr=1 [QSA]

RewriteRule microcredit/profile/(.)$ index.php?p=12 [QSA]
RewriteRule microcredit/loan/(.
)$ index.php?p=14 [QSA]

RewriteRule microcredit/active-loans.html(/?)$ index.php?p=2&t=2&s=1&row=0&pg=1&key= [QSA]
RewriteRule completed-loans.html(/?)$ index.php?p=2&t=3&s=1&row=0&pg=1&key= [QSA]

For security reasons, Option followsymlinks cannot be overridden.

#Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
RewriteEngine on
RewriteRule index-p-(.)-u-(.)-l-(.*).htm$ index.php?p=$1&u=$2&l=$3

RewriteRule completed-loans.html(/?)$ index.php?p=14&u=&l= [QSA]
RewriteRule user-forum.html(/?)$ index.php?webtag=FORUM [QSA]

RewriteRule ^invite(/?)$ index.php?p=30 [QSA]
RewriteRule ^invite/how-it-works(/?)$ index.php?p=3001 [QSA]
RewriteRule ^i/([^/]*)(/?)$ index.php?p=3000&username=$1 [QSA]

RewriteCond %{HTTP_HOST} ^cubinero.org$ [OR]
RewriteCond %{HTTP_HOST} ^www.cubinero.org$
RewriteRule ^forum/?$ “https://www.facebook.com/groups/Cubinero/” [R=301,L]

Sponsor our Newsletter | Privacy Policy | Terms of Service