12-23-2007, 08:45 PM
| THREAD STARTER
#1 (permalink)
|
| i love automation Join Date: Nov 2007 Location: xrvel.com
Posts: 1,615
| 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 PHP Code: <IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
????: NamePros.com http://www.namepros.com/programming/410340-ask-htaccess-rewrite-for-clean-url.html 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]
????: NamePros.com http://www.namepros.com/showthread.php?t=410340 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 by xrvel; 12-24-2007 at 12:33 AM.
|
| |