I've installed all modules in V7 through the Admin pannel and some of the link are pointing to a new {My_Site}/m/{module like articles} and I'm getting 404 page error. I can't see any new folder under the directory and not sure what the install did.
I saw some reference in the .htaccess "RewriteRule ^m/(.*)$ modules/index.php?r=$1 [QSA,L]" but it doesn't work for me if this is the porpose.
Any assistance will be appreciated
Yossi
|
I'm working on getting a grasp of building modules for v 7.0 and I do know that the default modules i.e. boonex modules are stored in modules/boonex/[modulename] if you are installing a custom module it would be modules/[vendor]/[modulename] Also make sure you have read, write, execute permissions set on the modules folder not sure if that help's but something you can check out.
- T
|
If you go to a profile like http://www.yoursite.com/admin do you get a 404 error viewing a profile also?
If so, your server is not processing the .htaccess file. Either mod_rewrite is not enabled in apache or apache is not setup to allow overrides via .htaccess in the apache server configuration.
https://www.deanbassett.com |
When using the url http://register.highpace.com/administration/ I can get the login screen without any problem.
However when I'm installing the Articles module and try to go with the new url http://register.highpace.com/m/articles/index/ there is no "/m/articles" folder therefore the new url is not recognized unless there is any changes to the .htaccess that reflect this change. looking on the dolphin modules folder it's like {mySite}/modules/boonex/{List of modules}. I guess I'm missing some reference to the new module location. Apache doesn't know about this location.
|
deano92964, I've checked my site with www.register.highpace.com/admin and I'm getting an 404 error. How can I check the mod-rewrite? it's not inside the phpinfo details.
Thanks for your assistance so far
|
No there is no directory m/articles
The .htaccess rewrite rule RewriteRule ^m/(.*)$ modules/index.php?r=$1 [QSA,L] takes care of that. The URL your getting is correct for the articles module, and the htaccess rule is correct.
So did you read my last post? Is apache allowing overrides in the directory dolphin is installed in? Is mod_rewrite installed for apache?
Try adding this to your .htaccess file just under RewriteEngine on
RewriteBase /
If that does not work you need to check apache for proper processing because the path you see for the articles module is correct and the rewrite rule is correct, so apache must not be processing it. https://www.deanbassett.com |
deano92964, I've checked my site with www.register.highpace.com/admin and I'm getting an 404 error. How can I check the mod-rewrite? it's not inside the phpinfo details.
Thanks for your assistance so far
You will have to get your host to look into it.
mod_rewrite should appear somewhere in the loaded modules section of phpinfo.
Apache
Version |
Apache/2.2.3 (CentOS) |
Apache API Version |
20051115 |
Server Administrator |
xxxxxxxxxxxxxxxx |
Hostname:Port |
xxxxxxxxxxxxxx |
User/Group |
apache(48)/48 |
Max Requests |
Per Child:
4000 - Keep Alive: off - Max Per Connection: 100 |
Timeouts |
Connection: 120 - Keep-Alive: 15 |
Virtual Server |
Yes |
Server Root |
/etc/httpd |
Loaded Modules |
core prefork http_core
mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias
mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host
mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm
mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config
mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate
mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status
mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation
mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http
mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache
mod_mem_cache mod_cgi mod_version mod_perl mod_php5 mod_proxy_ajp
mod_python mod_ssl |
But. That is not the only thing that controls that. Apache in some cases needs to be told to allow the .htaccess file. A option called AllowOverrides in the servers httpd.conf file.
Your host has to check that.
https://www.deanbassett.com |
Thanks! I'll check it with my hosting 1and1
I appreciate your time!
|
deano92964, THANK YOU VERY MUCH!!! the ReWriteBase / is the answer. I added it to the .htaccess and now all works
|
ReWriteBase / i worked for me TOO. Thanks alot! |
.htaccess
Options -MultiViews -Indexes
<IfModule mod_php4.c> php_flag register_globals Off </IfModule> <IfModule mod_php5.c> php_flag allow_url_include Off php_flag register_globals Off </IfModule>
<IfModule mod_rewrite.c> RewriteEngine on
ReWriteBase / This must add
RewriteRule ^blogs/{0,1}$ modules/boonex/blogs/blogs.php [QSA,L] RewriteRule ^blogs/all/{0,1}$ modules/boonex/blogs/blogs.php?action=all [QSA,L] RewriteRule ^blogs/all/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/blogs/blogs.php?page=$2&per_page=$1 [QSA,L] RewriteRule ^blog
_____________________________________
Social-Community-Network (S-C-N)
|
Yes Rewrite Base Worked for me as well. I'm using 1and1 hosting. |
Had the same issue on a clean install. "Rewrite Base /" was the fix. Thanks. |