Salve, utilizzo uno script e gli url mi escono cosi:Qualcuno sa dirmi cosa e come devo modificare per avere degli url classici del tipo:http://www.answers.miosito.com/categoria/prova--prova--prova--prova--prova--|2
Ecco l'htaccess:
Codice PHP:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^signup$ /signup.php
RewriteRule ^account$ /account.php
RewriteRule ^logout$ /logout.php
RewriteRule ^login$ /login.php
RewriteRule ^recent-questions$ /recent.php
RewriteRule ^popular-questions$ /popular.php
RewriteRule ^confirmemail$ /confirmemail.php
RewriteRule ^confirmemail/(.*) /confirmemail.php?code=$1
RewriteRule ^ask$ /ask.php
RewriteRule ^member/(.*)/(.*) /memberprofile.php?pid=$1&name=$2
RewriteRule ^editaccount$ /editaccount.php
RewriteRule ^changeemail$ /changeemail.php
RewriteRule ^changepass$ /changepass.php
RewriteRule ^top-experts$ /top-experts.php
RewriteRule ^search$ /search.php
RewriteRule ^rss/recent$ /rss_recent.php
RewriteRule ^rss/popular$ /rss_popular.php
RewriteRule ^forgot$ /forgot.php
RewriteRule ^resetpassword/(.*) /resetpassword.php?code=$1
RewriteRule ^resendconfirmation/(.*) /resendconfirmation.php?userid=$1
RewriteRule ^termsofuse$ /termsofuse.php
RewriteRule ^privacypolicy$ /privacypolicy.php
RewriteRule ^aboutus$ /aboutus.php
RewriteRule ^advertising$ /advertising.php
RewriteRule ^contactus$ /contactus.php
RewriteRule ^(.*)/([-_~*a-zA-Z0-9]+)\|([0-9]+)(\/)?$ view.php?title=$1&id=$2&%{QUERY_STRING}
RewriteRule ^([-_~*a-zA-Z0-9]+)(\/)?$ categories.php?key=$1
</IfModule>
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed,
# but better safe than sorry.
SecFilterScanPOST Off
</IfModule>

Rispondi quotando
