Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
By electronicmonkey on
Cleanurl test runs without error on my new site but no Cleanurl .I am hosting on 1and1
Comments
Same Here
Hosting on HostGator.
Thanks
--------
Additional comments:
When I go the Clean URLs form there is no "Enable or disable the Enable clean URLs checkbox". All I get is:
I found that the clean URLs do in fact work if I type the URL manually. However, all my site links contain ?q=
Need to investigate further
Need to investigate further next time ;)
Found the following issue on the subject --> http://drupal.org/node/881376
Issue Solved
Hope this helps.
All I get is error 500
All I get is error 500
omg. thank you so much
i had stopped creating content b/c of this. your meth worked for me. using hostgator too.
I had another site running D6
I had another site running D6 on 1and1 and I just swapped the htaccess since it had cleanurl. I now have Cleanurl on my D7 site
Thanks a lot for this great
Thanks a lot for this great tip.
After hours of searching, now clean urls working at domainfactory webspace.
Drupal 7 on 1and1 - Clean URLs overlay problem
I too had problems with Clean URLs installing Drupal 7 on 1and1 - I ran the test and it would not pass. As you mentioned above (Post by iAutom8) the problem was in the overlay - and, as mentioned below that (Post by electronicmonkey), when I did the "disable Overlay module" fix, I too received a error 500. My immediate next step was to uncommented "RewriteBase /" in .htaccess and than I went back to the above fix and it worked. The problem was in the overlay. This worked for me.
So to summarize (with additional step):
1) disable Overlay module
2) go to Clean URLS
3) change URL from: /?q=admin/config/search/clean-urls to: /admin/config/search/clean-urls
4) uncommented "RewriteBase /" in .htaccess
5) Then the Check box should appear (at least in my case)
(from a previous earlier step I also have $base_url in settings.php uncommented and set to my domain name)
I spent A LOT of time on this, and did a lot of tinkering, so I hope I didn't miss mentioning anything.
Thanks Lot after hours of
Thanks Lot after hours of searching this works for me.
Changes required for Ubuntu Linux on 1and1 - VPS
1. disable Overlay module.
2. uncomment rewriteBase / - My installation was at the document root /var/www.
3. In the apache2.conf file in /etc/apache, comment out: # AllowOverride All.
4. In the file default, found in /etc/apache/sites-available,
Options Indexes FollowSymLinks MultiViews
AllowOverride All <-- ****** change AllowOverride from None to All.
Order allow,deny
allow from all
5. Go to /admin/config/search/clean-urls and the check box appears.
thanks
thanks
.htaccess
I forgot to copy the .htaccess file over from the Drupal 7 install. Doing this fixed this same issue for me. It's too bad there isn't some kind of note on that page when the Clean URL fails like this. Maybe a check list to help the person troubleshoot the problem?
simple solution
check your .htaccess file
# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
replace
# RewriteBase /drupal
with
RewriteBase /yourdrupalfoldersname
for example :
www.---.com/mydrupal/
RewriteBase /mydrupal
hope it helps
This worked for me with
This worked for me with Drupal 7 on 1&1.
Not working...
2 days doing this now.
I uploaded my site to localhost/drupal dev - no problem - and changed the settings.php with the $conf[ 'clean_url'] = 0; - the site still runs - without the clean-urls - but, i made a mistake while trying to figure things out and tried to import the site again on my other laptop - and I have copied EXACTLY the same process and I can't disable the clean-urls - so the only page that displays is the hp - I can find the other pages - including the clean-urls page - with this:
http://test.localhost/?q=user/1#overlay=%3Fq%3Dadmin%252Fconfig%252Fsear... - but, i can't run the test, or disable from here - without getting the:
Not Found
The requested URL /node/7 was not found on this server.
I have tried changing the htaccess - no difference...I have used an sql query to delete in clean-url instances in the phpadmin (sorry if this isnt the right language) and have deleted cache...and IT STILL DOESN'T WORK! I am trying to work out the httpd.conf thing at the moment...but, I can't believe it can be that difficult when it was that easy the first time...
Any idea what I am doing wrong?
Thanks!
To enable the Clean URL Module in Drupal 7
1). Check the mod_rewrite is enabled or not for your apache server:
Command:
apache2ctl -M "OR" apachectl -M
Note 1: The above command list all the loaded modules of your apache configuration.
Note 2: You can also check it by using the phpinfo() function print. apache2handler ==> Loaded Modules
2). If the mod_rewrite module is not enabled then enabled it:
Command:
cd /etc/apache2/modes-enabled
ln -s ../mods-available/rewrite.load rewrite.load
3). Now open the folder "/etc/apache2/sites-available"
Command:
cd /etc/apache2/sites-available
4). Make the "AllowOverride none" to "AllowOverride All" of the file "default"
sudo gedit default
5). Open your .htaccess file of your drupal site:
6). Look for the following line (line 100 on Drupal 7.4 .htaccess file):
# RewriteBase /drupal
Uncomment this line and change the "/drupal" to match your subfolder. In my case, since Drupal was installed on a folder named "/public_html/kaushal", I changed so:
RewriteBase /kaushal
7). Try enabling Clean URLs again. You should now see the checkbox "Enable Clean URLs" available.
Thank a lot its work for me
Thank a lot its work for me :)
Clean URL Fix for Drupal 7 on 1and1 Hosting
Just uncommenting 'RewriteBase /' in the '.htaccess' file is all that is needed.
Why this drupal?
I learned Wordpress. But Now I want to learn Drupal. but I don't know what is the difference between them. Please tell me someone.
How to make clean url in drupal7 ?
Very simple
1. Goto .htaccess file in your drupa7 folder(ie your project folder. it may in in www/drupal_project/ or public_html/drupal_project/).
2. .htaccess is a hidden file. So go to this this directory structure www/your_project/(or public_html/your_project/) and press ctrl+h.
3. You will get all hidden files including .htaccess file.
4. in .htaccess file, go to line number 106
5. #RewriteBase /drupal uncomment this line. Replace drupal by your project folder.
6. If you are not administrator or if you have an account and you working from that account, specify like this,
#RewriteBase /~username/your_project_folder
7. Save the file
8. Go to admin/config/search/clean-urls this page.
9. If everything is ok, you will get Enable clean URLs checkbox.
10. Enable it and now you have clean URL in your site.
Thank you.
Don't understand complaints about 1&1 - my solution works4me
I'm using Drupal since one of the early 6.x versions. I was always using it on a small 1&1 web package.
To be honest I also did have some issues... But anyway, it was each time like it took me a while, where I was patient and then found a fix.
I read lots of topics where someone is complaining about how poor 1&1's compatibility is for Drupal. Welcome to real life, there's no guide to success for each solution on every server.
My notes for a solution with 1&1:
* Use the .htaccess file below, but read these notes first
* The file below works with my 6.x MultiSite and my 7.x MultiSite instances
* I do use a basic managed web package, in other words the cheapest for my requirements
* The .htaccess file needs to be put into the Drupal's root folder
* Afterwards use your 1&1 console to point a domain to the Drupal folder
* Wait 10-15 mins for the changes (if no changes are necessary, change something and point your domain back to the Drupal folder) to be applied
* Saying it twice, be patient! The changes are necessary, to have some config in background of 1&1 updated (just guessing, but this would explain why some users saying they don't know what exactly they have done to fix it)
* Enjoy CleanUrls with 1&1
* Let's see what changes for Drupal 8.x or 9.x
So hopefully this saves some lazy time for other guys. If so, please add a comment for others to tell them a solution does exist, to stop them from struggling through the w³ searching for a solution.
/edit:
Just a side note: Ensure your upload was successful. I've often seen people uploading their .htaccess failing and they didn't recognize it, as their Ftp program didn't complain about permissions that noisly. Probably best ist to rename / delete old file and then do the upload.
/edit
Here's my .htaccess to success:
Perfect Thanks!
This worked for me on Drupal 7 with 1and1
Thank You
Using Drupal 7.38. Uncommenting RewriteBase / worked for me.
Worked for me, too
I used 'Rewritebase /' and it got the site working - Am using a 1&1 Managed dedicated box.