Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: .htaccess -> Nice url's  (Read 8871 times)

0 Members and 1 Guest are viewing this topic.

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
.htaccess -> Nice url's
« on: October 16, 2003, 07:38:17 pm »

Can someone make a .htaccess file for the mod_rewrite?
I like that all url's in coppermine would be user-friendly to understand.

Do you know what I mean? Please, can someone help me?

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
.htaccess -> Nice url's
« Reply #1 on: October 16, 2003, 07:51:20 pm »

search and you shall find ;)
Logged
SANIsoft PHP applications for E Biz

lasa

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 84
    • Fotos.LaSa.nl
.htaccess -> Nice url's
« Reply #2 on: October 16, 2003, 08:04:18 pm »

Yeah, in that topic the only thing to change is the friendly-url to an user's gallery. But what I want, is that all url's are nice.

Can I do something with this code:
Code: [Select]

RewriteEngine on
RewriteCond %{REQUEST_URI} !^(.+)/(.+)/(.+)/(.+)([/]{0,1})$
RewriteCond %{REQUEST_URI} ^(.+)/(.+)([/]{0,1})$
RewriteRule ^(.+)/(.+)([/]{0,1})$ index.php?$1=$2

RewriteCond %{REQUEST_URI} !^(.+)/(.+)([/]{0,1})$
RewriteCond %{REQUEST_URI} ^(.+)/(.+)/(.+)/(.+)([/]{0,1})$
RewriteRule ^(.+)/(.+)/(.+)/(.+)([/]{0,1})$ index.php?$1=$2&$3=$4


This code rewrites index.php?b=1&b=2
to:
/b/1/b/2
And
index.php?b=1
To:
/b/1
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.