Ditutup

Simple Modrewrite/htaccess question

Projek ini menerima 6 bida daripada freelancer berbakat dengan harga bida purata $ USD.

Dapatkan sebut harga percuma untuk projek seperti ini
Bajet Projek
N/A
Jumlah Bida
6
Penerangan Projek

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]

Kemahiran Diperlukan

Mencari untuk memperoleh sedikit wang?

  • Tetapkan bajet anda dan tempoh masa
  • Rangkakan cadangan anda
  • Dibayar untuk kerja anda

Upah Freelancer yang juga membida projek ini

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online