+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: How to have clean URLs in Drupal

  1. #1
    rohitsinha54 is offline x10Hosting Member rohitsinha54 is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    36

    Question How to have clean URLs in Drupal

    Hello,
    Yesterday i installed a Drupal website on my web space.

    I want to configure it for clean urls the setting in administer panelis disabled.

    The handbook manual says you have to create a .htaccess file.

    Please tell me what contents i should write in that file to have clean URLs?

  2. #2
    bhupendra2895's Avatar
    bhupendra2895 is offline x10 Elder bhupendra2895 is an unknown quantity at this point
    Join Date
    Jun 2010
    Location
    India
    Posts
    554

    Re: How to have clean URLs in Drupal

    Enable display of hidden file in your cPanel file manager and delete any .htaccess present there.Rename local.htaccess in root folder of drupal installation to .htaccess and tell us if this works.If not then post the content of .htaccess here.
    Liked this? Click on the icon on the bottom of post to make me .

  3. #3
    rohitsinha54 is offline x10Hosting Member rohitsinha54 is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    36

    Re: How to have clean URLs in Drupal

    There is a .htaccess file which is blank and there is no local.htaccess file present in my drupal installation

    Note: I did not used the script installer of cpanel because it was not giving me the latest drupal. I downloaded the zip file from drupal website and uploaded it to server and extracted it there and did the installation.

  4. #4
    bhupendra2895's Avatar
    bhupendra2895 is offline x10 Elder bhupendra2895 is an unknown quantity at this point
    Join Date
    Jun 2010
    Location
    India
    Posts
    554

    Re: How to have clean URLs in Drupal

    That's good you didn't used script installer in cpanel and it has nothing to do this with this issue.All you need to do is to enable mod_rewrite.To do that put this in your .htaccess
    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    </IfModule>
    Last edited by bhupendra2895; 08-23-2010 at 12:06 AM.
    Liked this? Click on the icon on the bottom of post to make me .

  5. #5
    rohitsinha54 is offline x10Hosting Member rohitsinha54 is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    36

    Re: How to have clean URLs in Drupal

    still not working i pasted this code in .htaccess

    the clean url enable button is still disabled

    please help me out

  6. #6
    bhupendra2895's Avatar
    bhupendra2895 is offline x10 Elder bhupendra2895 is an unknown quantity at this point
    Join Date
    Jun 2010
    Location
    India
    Posts
    554

    Re: How to have clean URLs in Drupal

    This .htaccess file have multiple options that you can use
    http://drupalcode.org/viewvc/drupal/...ss?view=markup
    Also this documentation will help you for sure
    http://drupal.org/node/15365
    Liked this? Click on the icon on the bottom of post to make me .

  7. #7
    rohitsinha54 is offline x10Hosting Member rohitsinha54 is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    36

    Re: How to have clean URLs in Drupal

    dude this thing is also not working please help me out

  8. #8
    sbvitok96 is offline x10Hosting Member sbvitok96 is an unknown quantity at this point
    Join Date
    Jun 2010
    Posts
    1

    Re: How to have clean URLs in Drupal

    Quote Originally Posted by rohitsinha54 View Post
    dude this thing is also not working please help me out
    First look here http://status.x10hosting.com/post/66...4/http-changes
    then look at your drupal .htaccess
    Code:
      # 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
      #
      # If your site is running in a VirtualDocumentRoot at http://example.com/,
      # uncomment the following line:
      # RewriteBase /
    Last edited by sbvitok96; 08-24-2010 at 03:10 AM.

  9. #9
    purvesh_8832 is offline x10Hosting Member purvesh_8832 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    1

    Re: How to have clean URLs in Drupal

    Quote Originally Posted by bhupendra2895 View Post
    That's good you didn't used script installer in cpanel and it has nothing to do this with this issue.All you need to do is to enable mod_rewrite.To do that put this in your .htaccess
    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    </IfModule>
    This code works for me,
    Thank You !
    Purvesh Shah http://www.purveshshah.com
    Last edited by purvesh_8832; 09-24-2010 at 11:44 AM.

  10. #10
    movies.pcriot is offline x10Hosting Member movies.pcriot is an unknown quantity at this point
    Join Date
    Apr 2010
    Posts
    4

    Re: How to have clean URLs in Drupal

    Quote Originally Posted by rohitsinha54 View Post
    Hello,
    Yesterday i installed a Drupal website on my web space.

    I want to configure it for clean urls the setting in administer panelis disabled.

    The handbook manual says you have to create a .htaccess file.

    Please tell me what contents i should write in that file to have clean URLs?
    download drupal instalation. Extract it, there are .htaccess in it. upload on your root folder.
    Where are you hosting your web, here ?

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. How to get clean urls using Drupal ???
    By holeepassion in forum Free Hosting
    Replies: 0
    Last Post: 11-24-2008, 02:07 AM
  2. image urls in sql
    By maxyes in forum Programming Help
    Replies: 1
    Last Post: 08-28-2008, 01:16 PM
  3. Something killed my clean URLs
    By nsm_nikhil in forum Free Hosting
    Replies: 4
    Last Post: 02-09-2008, 07:50 AM
  4. must see URLs
    By tgkprog in forum Off Topic
    Replies: 0
    Last Post: 02-04-2008, 08:45 PM
  5. I am unable to use Clean URL? (Drupal 5.2)
    By netlook in forum Feedback and Suggestions
    Replies: 0
    Last Post: 09-15-2007, 12:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers