solved - HtAccess rewrite for clean url
I used this htaccess in localhost and it worked in localhost, but when i uploaded it, some aliases do not work well (rewrite module has been activated).
Maybe some part of my htaccess is wrong? This is a part of my htaccess
I used this htaccess in localhost and it worked in localhost, but when i uploaded it, some aliases do not work well (rewrite module has been activated).
Maybe some part of my htaccess is wrong? This is a part of my htaccess
PHP:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^([\d]+)$
RewriteRule ^re/download/([\w\-\_]+)/([\w\-\_]+)(/)?$ download.php?baca=1&baca_id=%1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^re/download/([\w\-\_]+)(/)?$ download.php?semua=1&jenissemuafile=$1 [QSA,L]
RewriteRule ^re/download(/)?$ download.php [QSA,L]
RewriteRule ^re/download_all(.*)?$ download.php?semua=1 [QSA,L]
RewriteRule ^re(.*)?$ index.php [QSA,L]
</IfModule>
Last edited:






