Sedang Disiapkan

Simple Modrewrite/htaccess question

What I need:

I'm using a script on my website which gives the following url for images placed within a directory

example the script takes images file Snow - [url removed, login to view] and turns it into the following url:

[url removed, login to view]+Album+1/Snow+-+[url removed, login to view]

How can I change that to:

Code:

[url removed, login to view]

(and if possible maybe strip out the .jpg portion from the url so it looks like)

Code:

[url removed, login to view]

The .htacess file that the script is currently using:

AddHandler application/x-httpd-php .html

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-f

RewriteCond %{SCRIPT_FILENAME} !-d

RewriteCond $1 !^([url removed, login to view]|images|css|javascript|rte|[url removed, login to view]|jpg|cache|pictures)

RewriteRule ^(.*)/(.*).html$ [url removed, login to view]$1&id=$2 [QSA,L]

RewriteCond %{SCRIPT_FILENAME} !-f

RewriteCond %{SCRIPT_FILENAME} !-d

RewriteCond $1 !^([url removed, login to view]|images|css|javascript|rte|[url removed, login to view]|jpg|cache|pictures)

RewriteRule ^(.*) [url removed, login to view]$1 [QSA,L]

Kemahiran: Linux, PHP, SEO, Reka Bentuk Laman Web

Lihat lebih lanjut: txt jpg, htaccess mod rewrite simple, strip, modrewrite, javascript rte, question website, html javascript code simple, simple application example, strip url, php rewriteengine, htaccess rewriteengine, php htaccess rewriteengine, rewriteengine, php htaccess, htaccess sample script, pictures url, question php, file cache, sample directory design, htaccess sample, simple application design, html jpg php script, application question, strip design, script browse file

Tentang Majikan:
( 0 ulasan ) Beavorton, United States

ID Projek: #330122