NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page [ask] HtAccess rewrite for clean url

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 12-23-2007, 08:45 PM THREAD STARTER               #1 (permalink)
i love automation
 
xrvel's Avatar
Join Date: Nov 2007
Location: xrvel.com
Posts: 1,615
xrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant future
 




Question 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=%[QSA,L]

    
RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond 
%{REQUEST_FILENAME} !-d
    RewriteRule 
^re/download/([\w\-\_]+)(/)?$ download.php?semua=1&jenissemuafile=$[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=[QSA,L]
    
RewriteRule ^re(.*)?$ index.php [QSA,L]
</
IfModule
__________________
Last edited by xrvel; 12-24-2007 at 12:33 AM.
xrvel is offline  
Old 12-23-2007, 11:29 PM THREAD STARTER               #2 (permalink)
i love automation
 
xrvel's Avatar
Join Date: Nov 2007
Location: xrvel.com
Posts: 1,615
xrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant futurexrvel has a brilliant future
 




Solved... "\w" and "\d" do not recognized..

Thanks..
__________________
Last edited by xrvel; 12-24-2007 at 12:33 AM. Reason: Solved already
xrvel is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:25 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger