.htaccess -> Nice url's .htaccess -> Nice url's
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

.htaccess -> Nice url's

Started by lasa, October 16, 2003, 07:38:17 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

lasa

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

SANIsoft PHP applications for E Biz

lasa

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:

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