By sjames on
http://www.shreemaa.org/drupal
all my bottom level pages get a '404 NOT FOUND error'
I haven't been able to figure out why this has happened.
I changed nothing in the config files for either Linux apache or mysql.
can anyone help?
susan
Comments
Clean URLs?
All tested links give me a 404. their ?q= equivalents work though.
Do you have a Rewritebase /drupal in .htaccess?
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Rewritebase is there
below is the Rewritebase in drupal's htaccess
how can I get to the module page with the equivalent ?q=
========
RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^id=([^&]+)$
RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
##RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
mod_rewrite
You can get to modules with the url:
?q=admin/modulesYou can get to settings with the url:
?q=admin/settings(where you can disable clean URLs).Can it be a mod_rewrite problem? If you make & visit a file with the contents:
you can get some info on your Apache installation.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
phpinfo- clean url's
http://www.shreemaa.org/foo.php
url_rewriter.tags gives local and master value
a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
I wouldn't know what to look for if something wasn't correct.
I would like to be able to use clean URL's but at this point they're broke.
this is there in httpd.conf
LoadModule rewrite_module libexec/mod_rewrite.so
404 not found
this url http://www.shreemaa.org/drupal/index.php?q=admin/modules seems to work but when I put in my login/password, I get the '404 page not found'
all my nodes are not accessible.
it's very possible that the nodes module got turned off somehow. this happened before but at least I could get to the modules page to turn it back on by using http://www.shreemaa.org/drupal/index.php?q=admin/modules
it doesn't work now though.
I can't get to the modules admin page.
any other ideas appreciated.
I also restarted httpd and mysql with no change.
http:/www.shreemaa.org/drupal
only main page can be seen. bottom nodes are '404 not found'
susan
node module is working
The node module is still working, because we can access the 'lower level' nodes via the ?q= styled URLs.
To disable clean URLs go into your database (do you have phpmyadmin?), select the table 'variable' and set the value of the row 'clean_url' to s:1:"0";
The SQL query to do that is:
If necessary clear the cache:
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
just discovered. nodes access broke
I can get to all my admin nodes, but I still can't to the viewer pages.
http:www.shreemaa.org/drupal
try clicking on any sidebar links and they're all broken with a '404 not found' error.
anyone, can help here?
susan
Clean URLs
can someone let me know if this code for drupal's .htaccess is correct?
somehow it broke and I can't get clean url's to work.
drupal lives in a separate subdirectory underneath httpdocs.
LoadModule rewrite_module modules/mod_rewrite.so
is enabled in httpd.conf
any insight appreciated.
====================
# Various rewrite rules.
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
#RewriteBase /drupal
RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^id=([^&]+)$
RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
##RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
Old-style
Normally these old-style rules are commented out:
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
OLD STYLE rules commented..
I commented the old style rules in drupal's .htaccess and when I try to enable clean urls in settings, I get that messages that says:
"it appears your host is not configured correctly for Clean URLs. Please check for ModRewrite support with your administrator."
this is there in httpd.conf
LoadModule rewrite_module libexec/mod_rewrite.so
============
# Various rewrite rules.
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'.
## RewriteCond %{REQUEST_FILENAME} !-f
##RewriteCond %{REQUEST_FILENAME} !-d
##RewriteCond %{QUERY_STRING} ^id=([^&]+)$
##RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'.
##RewriteCond %{REQUEST_FILENAME} !-f
##RewriteCond %{REQUEST_FILENAME} !-d
##RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
##RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
##RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
clean URLS
clearn urls are broken on my site.
and, I've disabled clean urls in settings.
the pages still don't generate from the dbs.
e.g.
http://www.shreemaa.org/drupal/?q=node/78 works and http://www.shreemaa.org/drupal/node/78 doesn't work.
is there something I can do to get my pages to work without the clean urls?
I ran this mysql command:
UPDATE variable SET value = 's:1:"0"' WHERE name = 'clean_url';
but drupal still wants to use clean urls.
help.
Just took a look
I just took a look and it seems your site is working again with and without clean urls.
How did you solve your problem?
I noticed the navigation menu uses the ?q= style (clean URLs seem to be off) but the other blocks do not use that style. Are these 'hardcoded' urls?
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
AllowOverride All
Your drupal directory needs to have "AllowOverride All" for the rewrite rules in the .htaccess file to work. i.e. If running apache2, put the following in a sites-enabled/drupal file:
enabled clean URLs on IIS than couldn't login
This was the ticket!! I made this SQL change and was able to log in again!!!
Which SQL did you change.
Which SQL did you change. Can you post here, I am having the same issue.
______________________________________
Drupal Tips, how-to, Themes @ http://mydrupal.com
http://mydrupal.com/drupal-services
done!
thank you so much,, you save my life!