Unfortunately not.cmb wrote: You can try the following .htaccess instead (not sure if that'll work):Code: Select all
RewriteEngine on # set the rewrite base to the user directory RewriteBase /~name/ # Do not rewrite requests to existing directories and files: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Everything else is a CMSimple_XH page request, # so shift the subfolders to the beginning of the query string RewriteRule ^([A-z]{2}/)?(.*)$ $1?$2 [QSA]
Clean URLs
Re: Clean URLs
Re: Clean URLs
I've set up a user dir enviroment and the original .htaccess as well the modified one (with the proper RewriteBase) worked for me.
It might be best to ask your server admin(s); the .htaccess should be enough info for them to figure out the solution.
It might be best to ask your server admin(s); the .htaccess should be enough info for them to figure out the solution.
Christoph M. Becker – Plugins for CMSimple_XH
Re: Clean URLs
Sorry, my bad... Figured out, what was wrong. As this was test site in subfolder I forgot to add folder namecmb wrote:I've set up a user dir enviroment and the original .htaccess as well the modified one (with the proper RewriteBase) worked for me.
It might be best to ask your server admin(s); the .htaccess should be enough info for them to figure out the solution.
Code: Select all
RewriteBase /~name/testsite/
Re: Clean URLs
Thanks for the feedback. Good to know that there's a solution regarding user directories.tanavots wrote:As this was test site in subfolder I forgot to add folder name
Christoph M. Becker – Plugins for CMSimple_XH
THANK YOU!!!
THANK YOU!!!cmb wrote:Find function XH_printUrl() in cmsimple/tplfuncs.php and replace it with the following:...
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Бедная, бросаемая бурею, безутешная!
Не загружаются изображения
[ external image ] Здравствуйте. Не загружаются изображения.
[ external image ] Guten Tag. Nicht die Bilder werden geladen.
[ external image ] Hello. Do not load images.
[ external image ] Guten Tag. Nicht die Bilder werden geladen.
[ external image ] Hello. Do not load images.
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Бедная, бросаемая бурею, безутешная!
Re: Clean URLs
I noticed, that line is changed in 1.6.2. Instead of & is &. Is there more changes that may affect CleanURL?cmb wrote: Toggling between edit and view mode in the back-end
Switching to view mode in the back-end will change to the "non clean" URLs. That's no problem, but you can change this behavior easily. Find function XH_adminMenu() in cmsimple/adminfuncs.php and replace the following line:with:Code: Select all
'url' => '?' . $su . '&' . $changeMode,
Code: Select all
'url' => $su . '&' . $changeMode,
Re: Clean URLs
I have replied some days ago via PM.Maxim wrote:Не загружаются изображения.
Indeed. That was done to allow for a cleaner XH_registerPluginMenuItem() API (actually, URLs use & to separate parameters; & is only needed when the URL is written to (X)HTML, so it's cleaner to escape the URLs late).tanavots wrote:I noticed, that line is changed in 1.6.2. Instead of & is &.
Frankly, I don't know. I have checked my clean URL recipe, and this is the only place where something has changed (I have edited the post accordingly).tanavots wrote:Is there more changes that may affect CleanURL?
To stay on top of things regarding clean URLs, I deem it necessary to make them available in the core. I hope my proposal will be accepted for CMSimple_XH 1.7.
Christoph M. Becker – Plugins for CMSimple_XH
Thank you.
[ external image ] Исправил:
[ external image ] Korrigiert:
[ external image ] Corrected:
plugins/filebrowser/classes/Filebrowser_View.php
plugins/filebrowser/tpl/cmsbrowser.php
Thank you.
[ external image ] Korrigiert:
[ external image ] Corrected:
plugins/filebrowser/classes/Filebrowser_View.php
plugins/filebrowser/tpl/cmsbrowser.php
Thank you.
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Бедная, бросаемая бурею, безутешная!
URLs без www (.htaccess)
[ external image ] Доброе утро. Предлагаю изменения в файле .htaccess. URLs без www.
[ external image ] Guten morgen. Schlage vor, änderungen in der .htaccess-Datei. URLs ohne www.
[ external image ] Good morning. Proposes changes to the .htaccess file. URLs without www.
[ external image ] Guten morgen. Schlage vor, änderungen in der .htaccess-Datei. URLs ohne www.
[ external image ] Good morning. Proposes changes to the .htaccess file. URLs without www.
Code: Select all
RewriteEngine on
# URLs without www
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*) http://%1/$1 [L,R=301]
# Do not rewrite requests to existing directories and files:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Everything else is a CMSimple_XH page request,
# so shift the subfolders to the beginning of the query string
RewriteRule ^([A-z]{2}/)?([^.]*)(.html)?$ $1?$2 [QSA]
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Бедная, бросаемая бурею, безутешная!