How to have clean URLs in Drupal

rohitsinha54

New Member
Messages
36
Reaction score
0
Points
0
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?
 

bhupendra2895

New Member
Messages
554
Reaction score
20
Points
0
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.
 

rohitsinha54

New Member
Messages
36
Reaction score
0
Points
0
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.
 

bhupendra2895

New Member
Messages
554
Reaction score
20
Points
0
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:

rohitsinha54

New Member
Messages
36
Reaction score
0
Points
0
still not working i pasted this code in .htaccess

the clean url enable button is still disabled

please help me out
 

sbvitok96

New Member
Messages
1
Reaction score
0
Points
0
dude this thing is also not working please help me out
First look here http://status.x10hosting.com/post/662312354/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:

purvesh_8832

New Member
Messages
1
Reaction score
0
Points
0
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 ! :wink:
Purvesh Shah http://www.purveshshah.com
 
Last edited:

movies.pcriot

New Member
Messages
4
Reaction score
0
Points
0
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 ?
 
Top