CleanURLs don't stay in the Browser bar and instead fall back

Bug #1933944 reported by LisAndi - Andi Becker - http://lisandi.com
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
New
Undecided
Unassigned

Bug Description

We have set

Clean URL settings
$cfg->cleanurluserdefault: u
$cfg->cleanurlgroupdefault: g
$cfg->cleanurlviewdefault: p
$cfg->cleanurlcharset: ASCII
$cfg->cleanurlinvalidcharacters: /[^a-zA-Z0-9]+/
$cfg->cleanurlvalidate: /^[a-z0-9-]*$/

and domain.name/u/userdisplayname falls back to its complicated old URL again and again and makes it very difficult to users to simply add a user created page to get direct to the page.

i.e. domain.name/u/userdisplayname/resume

instead again they have top eneterthat unrememberable difficult URL with question marks.

the .htaccess looks like

<IfModule mod_rewrite.c>
 RewriteEngine on

    # if redirected to url cleaner, redirect to actual lookup file and
 # these lines will keep the clean url visible in the browser
 RewriteRule ^u/([a-z0-9-]+)/?$ https://montessori.contact/user/view.php?profile=$1&%{QUERY_STRING} [L]
 RewriteRule ^u/([a-z0-9-]+)/([a-z0-9-]+)/?$ https://montessori.contact/view/view.php?profile=$1&page=$2&%{QUERY_STRING} [L]
 RewriteRule ^g/([a-z0-9-]+)/?$ https://montessori.contact/group/view.php?homepage=$1&%{QUERY_STRING} [L]
 RewriteRule ^g/([a-z0-9-]+)/([a-z0-9-]+)/?$ https://montessori.contact/view/view.php?homepage=$1&page=$2&%{QUERY_STRING} [L]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
 RewriteRule ^ %1 [R,L]

    # do not do anything if already existing file, symbolic link or directory
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ $1.php [L]

 </IfModule>

Tags: cleanurl
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Also see bug 1933945 if this were a problem and needed testing.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.