NameSilo

[Ask] HtAccess rewrite for clean url

Spaceship Spaceship
Watch

xrvel

i love automationVIP Member
Impact
165
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:
<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:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Solved... "\w" and "\d" do not recognized..

Thanks.. :)
 
Last edited:
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back