En cours

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:

domain.com/pictures/Sample+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]

Compétences : Linux, PHP, SEO, Design de site internet

Voir plus : txt 2 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

Concernant l'employeur :
( 0 commentaires ) Beavorton, United States

N° du projet : #330122