Hi

Apologies if this has been answered but I have done a search and can't find an answer.

I have a website built by and hosted on 1&1. I have installed drupal 6 onto the site but can not enable clean URLs (although have tried many times with help of this site).

I am doing this to try and change the URLs which are generated by 1&1. It is an eshop and the pages read as /shop/page/22?shop_param= but i want them to read /fabric/Toile_de_jouy for example. Is this possible with drupal and how do i go about it. I have very limited knowledge of any coding but have access to 1&1 control panel including MySQL and all the root files etc..

Any help would be extremely appreciated.

Comments

danny englander’s picture

This sounds like a limitation of 1&1. You should check with them to make sure Apache mod_rewrite is enabled and that you are able to have a .htaccces file.

For more info check this link:
http://drupal.org/node/15365

Ideally of course you want to be on a LAMP server and not Windows.

faarn’s picture

I have managed to get the clean url to work and have now installed alias so i can change the URLs as i wish. The problem is to do this i had to install drupal in a subfolder in the root rather than the root directory itself. I tried installing it directly into the root but it kept redirecting to my existing home page.

Now alias only allows me to access the existing URLs in the drupal folder for which there are none. Is it possible to access URLs in the root folder one above the drupal folder and if so how?

Help greatly appreciated

danny englander’s picture

You may want to check your .htaccess at root and see if there is anything funky in there that's causing your issue.

faarn’s picture

Thanks for all the advise.

Having spoken to I and 1 they say it is not possible as drupal does not recognise the website files as it did not create them.

I can understand this but is there any way of getting drupal to recognise files it did not create?

Thanks

danny englander’s picture

Can you tell us whats in your .htaccess file at root? Perhaps paste here in some code brackets

faarn’s picture

Here is the code from the .htaccess file in the root

Many thanks

RewriteEngine on
RewriteCond %{SERVER_PORT} ^443
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^/?]+)/category_([^/?]+)/([^/?]+)/?$ tinc?shop=online&key=xkIW4v96&language=$1&part=catalog&page=browse&ecid=$2&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^443
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^category_([^/?]+)/([^/?]+)/?$ tinc?shop=online&key=xkIW4v96&part=catalog&page=browse&ecid=$1&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^443
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^/?]+)/article_([^/?]+)/([^/?]+)/?$ tinc?shop=online&key=xkIW4v96&language=$1&part=catalog&page=details&aid=$2&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^443
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^article_([^/?]+)/([^/?]+)/?$ tinc?shop=online&key=xkIW4v96&part=catalog&page=details&aid=$1&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^443
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^/?]+)/([^/?]+)/([^/?]+)/?$ tinc?shop=online&key=xkIW4v96&language=$1&part=$2&page=$3&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^443
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^/?]+)/([^/?]+)/?$ tinc?shop=online&key=xkIW4v96&part=$1&page=$2&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^443
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^\./?]+)/?$ tinc?shop=online&key=xkIW4v96&language=$1&part=page&page=intro&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^443
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^/?(([^\.])*)$ tinc?shop=online&key=xkIW4v96&part=page&page=intro&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^80
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^/?]+)/category_([^/?]+)/([^/?]+)/?$ /tinc?shop=online&key=xkIW4v96&language=$1&part=catalog&page=browse&ecid=$2&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^80
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^category_([^/?]+)/([^/?]+)/?$ /tinc?shop=online&key=xkIW4v96&part=catalog&page=browse&ecid=$1&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^80
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^/?]+)/article_([^/?]+)/([^/?]+)/?$ /tinc?shop=online&key=xkIW4v96&language=$1&part=catalog&page=details&aid=$2&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^80
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^article_([^/?]+)/([^/?]+)/?$ /tinc?shop=online&key=xkIW4v96&part=catalog&page=details&aid=$1&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^80
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^/?]+)/([^/?]+)/([^/?]+)/?$ /tinc?shop=online&key=xkIW4v96&language=$1&part=$2&page=$3&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^80
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^/?]+)/([^/?]+)/?$ /tinc?shop=online&key=xkIW4v96&part=$1&page=$2&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^80
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^([^\./?]+)/?$ /tinc?shop=online&key=xkIW4v96&language=$1&part=page&page=intro&%{QUERY_STRING} [L]
RewriteCond %{SERVER_PORT} ^80
RewriteCond %{REQUEST_URI} !(^/tinc.*) [NC]
RewriteRule ^/?(([^\.])*)$ /tinc?shop=online&key=xkIW4v96&part=page&page=intro&%{QUERY_STRING}
danny englander’s picture

Based on the above, if Drupal were in your root directory, clean URLs would not work as you would need to have the specfic .htaccess file that comes with drupal for those to work or merge it with the file above.