google doesn't seem to be indexing my site, I've tried all the other methods that I found in the forums.

I can't seem to get clean urls working, I believe this is my problem, does anyone have any ideas?

I'm using free space on 1and1.com and drupal 4.2 I do have the redirect module installed but that doesn't seem to help.

Comments

boris mann’s picture

You definitely need clean URLs enabled for proper search engine indexing. Give more details about what's not working when you try and enable clean URLs.

You definitely do need .htaccess support, so see if 1and1 supports this.

duztin’s picture

I am able to edit my htaccess file, this is what it looks like. When I enable clean urls, my site logs you out whenever you go to a different page.

#
# Apache/PHP/site settings:
#

# Protect files and directories from prying eyes:

order deny,allow
deny from all

# Set some options
Options -Indexes
Options FollowSymLinks

# Set the default handler to index.php:
DirectoryIndex index.php index.htm index.html

# Customized server error messages:
ErrorDocument 400 /error.php
ErrorDocument 402 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 500 /error.php

# Overload PHP variables:

php_value register_globals 0
php_value track_vars 1
php_value short_open_tag 1
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value arg_separator.output "&"
php_value session.cache_expire 200000
php_value session.cookie_lifetime 2000000
php_value session.auto_start 0
php_value session.save_handler user
php_value session.cache_limiter none
php_value allow_call_time_pass_reference Off

# Various rewrite rules

RewriteEngine on

# 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 URLs of the form 'index.php?q=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# $Id: .htaccess,v 1.50 2003/06/26 04:54:01 dries Exp $

bugsy’s picture

Nothing to add to this (since it seems like a hosting issue) but I wanted to say that this is a very nice, complete .htaccess example.
This really helped me in my setup.
Thanks,

-J

"Even though they drink, they're still human beings." -- Batman

stefan_sick@drupal.org’s picture

i know your problem well as i was customer of "1und1", the german counterpart of 1and1.
the don't let you modify apache settings via .htaccess. Their support person told me that they wont make exception for single customers.

So the only solution i found is to change the provider - and so i did.
Now clean urls work like a charm - look at www.cialog.com

duztin’s picture

Thanks I'll look around

duztin’s picture

So what are these settings that I need? changing hosts is possible, but what do I ask them before I buy space? I need to be able to change the htaccess file?

I am able to edit mine but nothing seems to work.

briandburnham’s picture

At least on mine they do. I just grabed the default .htaccess file from the instalation instructions, and it works fine. I'll paste my file below...

#
# Apache/PHP/site settings:
#

# Protect files and directories from prying eyes:

order deny,allow
deny from all

# Set some options
Options -Indexes
Options FollowSymLinks

# Customized server error messages:
ErrorDocument 404 /index.php

# Set the default handler to index.php:
DirectoryIndex index.php

# Overload PHP variables:

# If you are using Apache 2, you have to use
# instead of .
php_value register_globals 0
php_value track_vars 1
php_value short_open_tag 1
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
php_value arg_separator.output "&"
php_value session.cache_expire 200000
php_value session.gc_maxlifetime 200000
php_value session.cookie_lifetime 2000000
php_value session.auto_start 0
php_value session.save_handler user
php_value session.cache_limiter none
php_value allow_call_time_pass_reference On

# 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 URLs of the form 'index.php?q=x':
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

# $Id: .htaccess,v 1.56 2003/12/18 18:53:11 dries Exp $