mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #62547
[Bug 1933944] [NEW] CleanURLs don't stay in the Browser bar and instead fall back
Public bug reported:
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>
** Affects: mahara
Importance: Undecided
Status: New
** Tags: cleanurl
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1933944
Title:
CleanURLs don't stay in the Browser bar and instead fall back
Status in Mahara:
New
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>
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1933944/+subscriptions
Follow ups