Kishshey Posted October 9, 2015 Report Posted October 9, 2015 Hello, Is there a possible way to clean up the url structure of my PHPVMS site. Example : http://myva.com/index.php/profile --->>> http://myva.com/profile http://myva.com/action.php/Ops/map --->>> http://myva.com/Ops/Map Thanks Quote
Moderators servetas Posted October 9, 2015 Moderators Report Posted October 9, 2015 Is this what you are looking for? http://forum.phpvms.net/topic/4786-htaccess-url-rewrite-for-indexphp Quote
Kishshey Posted October 9, 2015 Author Report Posted October 9, 2015 yes, thanks that is exactly what i was looking for. But reading through that, i could not find what to add on .htaccess Can you help me with that. Thanks Quote
Kishshey Posted October 9, 2015 Author Report Posted October 9, 2015 SOLVED For those who are looking for the answer : Replace CondonRewrite.class.php in Core/Classes with this : https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/classes/CodonRewrite.class.php And add .htaccess file containing the following to the root folder # main page of the site DirectoryIndex index.php # prevent viewing of a specific file <FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh|tpl)$"> Order Allow,Deny Deny from all </FilesMatch> # prevent viewing of index Options +FollowSymLinks Options All -Indexes #Can give without index.php for the modules RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L] 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.