news artikelen link

Nederlandse ondersteuning voor CMS Made Simple

Moderators: velden, Rolf

Post Reply
Adheera
Forum Members
Forum Members
Posts: 178
Joined: Sat Dec 10, 2011 12:19 pm

news artikelen link

Post by Adheera »

Ha mensen,
ik zie weer eens iets over het hoofd
De news-berichten op http://levenslangleren.com.domainpreview.nl/ geven niet de juiste link
config aangepast

Code: Select all

$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['permissive_smarty'] = 1; 
htaccess:

Code: Select all

# This file is specific to Apache configurations.
# It attempts to optimize traffic and configuration for your CMS Made Simple™ website.
# Many options are disabled by default as some providers do not allow you to override some of these settings in the .htaccess file.

#
# Attempt to override some PHP settings.
# These settings may be helpful on some hosts if your default configuration does not meet CMSMS's minimum requirements,
# and your host has given your account appropriate permissions.
#
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"
#php_value session.cookie_httponly true
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

#
# Disallow directory indexes. This can be an important security enhancement.
#
#Options -Indexes

#
# Don't allow the browser to know the type of signature.
#
ServerSignature Off

#
# Allow the Apache server to follow symbolic links. This is usually not necessary.
#
#Options +FollowSymLinks

#
# The following is to enable pretty URLs, only applicable if url_rewriting is set to 'mod_rewrite' in the config.php
#
<IfModule rewrite_module>
	RewriteEngine on
	# If your CMSMS installation is in a subdirectory of your domain, you need to specify the relative path (from the root of the domain) here.
	# In example: RewriteBase /[subdirectory name]
	RewriteBase /
	
	# Rewrites URLs in the form of /parent/child/grandchild but only rewrites if the requested URL is not a file or directory.
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>

#
# The following are highly recommended security settings for files in your CMSMS install that should not be browsed directly.
#
RedirectMatch 403 ^/.*\.htaccess$
RedirectMatch 403 ^/.*\.log$
RedirectMatch 403 ^/.*\.ini$
RedirectMatch 403 ^/.*config\.php$
RedirectMatch 403 ^.*/doc/.*$
RedirectMatch 403 ^.*/lib/.*\.php$
RedirectMatch 403 ^.*/tmp/.*\.php$
RedirectMatch 403 ^.*/modules/(?!TinyMCE/responsive_filemanager/filemanager/).*\.php$
RedirectMatch 403 ^.*/uploads/.*\.php$
RedirectMatch 403 ^.*/assets/.*\.php$
RedirectMatch 403 ^.*/assets/.*\.tpl$

#
# The following are performance optimizations and security enhancements for content that is served by your CMSMS installation.
#
<IfModule mod_headers.c>
    # Disable Last-Modified for performance
    Header unset Last-Modified
	# Disable ETags
	Header unset ETag
	FileEtag None
	# For Security
	Header set X-Frame-Options "SAMEORIGIN"
</IfModule>

#
# The following setups compression for content, if compression is enabled on the server.
#
<IfModule deflate_module>
	AddOutputFilterByType DEFLATE text/html text/css text/plain text/html text/xml image/gif image/jpeg image/png image/ico text/javascript application/x-javascript application/javascript application/json application/pdf
</IfModule>

#
# The following allows the browser to cache images, scripts, stylesheets and videos. If the expires module is enabled on the server.
# Note, this applies to admin directory stuff too.
# however, for php files in the admin directory we explicitly st the header to not expire
#
<IfModule mod_expires.c>
	ExpiresActive On
	ExpiresDefault "access plus 1 month"
	# Set expires tags on various file types... so that the browser won't attempt to reload them.
	ExpiresByType image/jpg "access plus 1 year"
	ExpiresByType image/gif "access plus 1 year"
	ExpiresByType image/ico "access plus 1 year"
	ExpiresByType image/png "access plus 1 year"
	ExpiresByType video/x-flv "access plus 1 year"
	ExpiresByType application/pdf "access plus 1 year"
	ExpiresByType application/x-shockwave-flash "access plus 1 year"
	ExpiresByType application/javascript "access plus 1 month"
	ExpiresByType application/x-javascript "access plus 1 month"
	ExpiresByType text/javascript "access plus 1 month"
	ExpiresByType text/css "access plus 1 month"
	<IfModule mod_headers.c>
		# Setting cache control to public allows proxy servers to cache the items too.
		Header set Cache-Control "public"
	</IfModule>
</IfModule>
{metadata} staat in de template

Red me ajb
Hier wor ik gek van :-)
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3369
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: news artikelen link

Post by velden »

Lijkt erop dat mod_rewrite het niet doet. Ik zou eens bij de hosting provider informeren.

En begin dan liever met een normale, extra pagina om de News module uit de vergelijking te halen.
Adheera
Forum Members
Forum Members
Posts: 178
Joined: Sat Dec 10, 2011 12:19 pm

Re: news artikelen link

Post by Adheera »

Ik heb heel veel sites bij deze hostingprovider. Nooit problemen hiermee
Zonder Pretty url werken de links wel
Adheera
Forum Members
Forum Members
Posts: 178
Joined: Sat Dec 10, 2011 12:19 pm

Re: news artikelen link

Post by Adheera »

Kan het zijn dat mod_rewrite van CMSMS niet werkt met PHP 7.4.15 ?

En wat bedoel je met
"En begin dan liever met een normale, extra pagina om de News module uit de vergelijking te halen."

Ik heb pretty url uitgezet. De klant wilde de nieuwe site zien
tristan
Dev Team Member
Dev Team Member
Posts: 339
Joined: Tue May 02, 2006 10:58 am
Location: The Netherlands

Re: news artikelen link

Post by tristan »

Wat zegt een phpinfo(); pagina over je mod_rewrite kan je hem daar in terug vinden?
Adheera
Forum Members
Forum Members
Posts: 178
Joined: Sat Dec 10, 2011 12:19 pm

Re: news artikelen link

Post by Adheera »

ik zie niks

Code: Select all

----------------------------------------------

Cms Version: 2.2.15

Installed Modules:

    AdminSearch: 1.0.5
    CGExtensions: 1.65.2
    CGSmartImage: 1.22.7
    CMSContentManager: 1.1.9
    CmsJobManager: 0.1.3
    DesignManager: 1.1.9
    FileManager: 1.6.12
    FilePicker: 1.0.5
    Gallery: 2.4.2
    MenuManager: 1.50.3
    MicroTiny: 2.2.5
    ModuleManager: 2.1.8
    Navigator: 1.0.9
    News: 2.51.11
    Search: 1.52


Config Information:

    php_memory_limit:
    max_upload_size: 128000000
    url_rewriting: none
    page_extension:
    query_var: page
    auto_alias_content: true
    locale:
    set_names: true
    timezone: Europe/Amsterdam
    permissive_smarty: true


Php Information:

    phpversion: 7.4.21
    md5_function: Aan (Waar)
    json_function: Aan (Waar)
    gd_version: 2
    tempnam_function: Aan (Waar)
    magic_quotes_runtime: Uit (Onwaar)
    E_ALL: 22527
    E_STRICT: 0
    E_DEPRECATED: 0
    test_file_timedifference: Geen tijdsverschillen gevonden
    test_db_timedifference: Geen tijdsverschillen gevonden
    create_dir_and_file: 1
    memory_limit: 192M
    max_execution_time: 30
    register_globals: Uit (Onwaar)
    output_buffering: 4096
    disable_functions: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_get_handler, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority, pcntl_async_signals, pcntl_unshare,
    open_basedir:
    test_remote_url: Succes
    file_uploads: Aan (Waar)
    post_max_size: 128M
    upload_max_filesize: 128M
    session_save_path: /var/lib/php/sessions (1733)
    session_use_cookies: Aan (Waar)
    xml_function: Aan (Waar)
    xmlreader_class: Aan (Waar)
    check_ini_set: Aan (Waar)
    curl: Aan


Performance Information:

    allow_browser_cache: Aan (Waar)
    browser_cache_expiry: 60
    php_opcache: Aan (Waar)
    smarty_cache: Uit (Onwaar)
    smarty_compilecheck: Uit (Onwaar)
    auto_clear_cache_age: Aan (Waar)

Server Information:

    Server Software: Apache/2.4.48 (Debian)
    Server Api: apache2handler
    Server Os: Linux 5.10.0-8-amd64 Aan x86_64
    Server Db Type: MySQL (mysqli)
    Server Db Version: 10.5.11
    Server Db Grants: Kan geen geldige "GRAND ALL" permissie vinden. Dit kan problemen opleveren bij het installeren of verwijderen van modules. Of zelfs bij het toevoegen of verwijderen van items, zoals pagina's.


Permission Information:

    tmp: /home/levenslanglerenc/levenslangleren.com/tmp (0755)
    tmp_cache: /home/levenslanglerenc/levenslangleren.com/tmp/cache (0755)
    templates_c: /home/levenslanglerenc/levenslangleren.com/tmp/templates_c (0755)
    modules: /home/levenslanglerenc/levenslangleren.com/modules (0755)
    uploads: /home/levenslanglerenc/levenslangleren.com/uploads (0755)
    Bestandscreatiemasker (umask): /home/levenslanglerenc/levenslangleren.com/tmp/cache (0755)
    config_file: 0444

----------------------------------------------
tristan
Dev Team Member
Dev Team Member
Posts: 339
Joined: Tue May 02, 2006 10:58 am
Location: The Netherlands

Re: news artikelen link

Post by tristan »

Ik zie:

Code: Select all

url_rewriting: none
Maar geen idee of je ten tijde van deze dump dat al had uitgezet? Ik bedoelde eigenlijk meer of je een https://www.php.net/phpinfo output kon laten zien. Als daar mod_rewrite niet in voorkomt dan moet je toch echt je hoster een mail gaan sturen.
Adheera
Forum Members
Forum Members
Posts: 178
Joined: Sat Dec 10, 2011 12:19 pm

Re: news artikelen link

Post by Adheera »

http://levenslangleren.com/info.php Staat erin

Even 'mod_rewrite' in de config gezet en nu staat er bij Systeem informatie:

Code: Select all

url_rewriting 		mod_rewrite 

De hostingprovider vroeg:
Kan het zijn dat mod_rewrite van CMSMS niet werkt met PHP 7.4.21 ?
Ik kan 'm vragen om de site op een oudere server te zetten
tristan
Dev Team Member
Dev Team Member
Posts: 339
Joined: Tue May 02, 2006 10:58 am
Location: The Netherlands

Re: news artikelen link

Post by tristan »

CMS Made Simple werkt prima met 7.4.* hebben hier ook geen problemen met die versie icm mod_rewrite dus daaraan zou het niet moeten liggen. Wat zegt je error log?
Adheera
Forum Members
Forum Members
Posts: 178
Joined: Sat Dec 10, 2011 12:19 pm

Re: news artikelen link

Post by Adheera »

tjonge jonge dom dom dom
Wat het nou was......
had .htaccess zonder punt ervoor staan
Hoe dat zo gekomen is.....mij een raadsel
Dank je wel Tristan voor je feedback en hulp
Post Reply

Return to “Dutch - Nederlands”