I am unable to get clean urls on my website.
I have already done the following:
Edited the .htaccess file with:
RewriteEngine onRewriteBase /www.tvwalay.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Initially it was blank!
After doing this I removed "path" & "pathauto" & then re enabled them.
I went to the clean URl link but it is still not enabling!
name of my site is www.tvwalay.com - it is hosted at Midphase.com
I have checked posts on the same issue but I do not know how to enter the unix commands
Some one please help me!!
The hosters details are:
Hosting package Mega-PHASE Annual
Server Name esc158
cPanel Version 11.24.4-RELEASE
cPanel Build 32603
Theme x3
Apache version 1.3.41 (Unix)
PHP version 5.2.6
MySQL version 5.0.67-community
Architecture i686
Operating system Linux
Shared Ip Address 67.228.216.12
Path to sendmail /usr/sbin/sendmail
Path to PERL /usr/bin/perl
Kernel version 2.6.18-92.el5PAE
The drupal is working fine but it is not generating clean urls.
Please help!
Regards,
Comments
Do you have the complete .htaccess?
First, you write with regard to the .htaccess file:
so do you have the complete .htaccess on the web server? Or did you start with an empty file where you added the code you give? In the latter case, I would suggest that you copy the complete .htaccess file from a Drupal source code distribution to your server...
Next: Is
just a typo that happened when you copied and pasted the content of your .htaccess to your post? The "RewriteEngine on" and "RewriteBase ..." are two seperate statements that should each be on a line of their own.
Finally, is
indeed correct? IMHO that would mean that you have installed the Drupal source code in a subdirectory named "www.tvwalay.com" of the Document Root of your web server. That might well be, of course; I'm just guessing...
Hope this helps a bit...
1. It was blank (in my root
1. It was blank (in my root folder that is).
I added those lines and then uploaded it.
2. Yes it is a typo, in my this posting they are correct in the file "RewriteEngine onRewriteBase /www.tvwalay.com"
3. it is int the publich html directory (so i get the address www.tvwalay.com); if it had been another directory say example, i would get the address like www.tvwalay.com/example
Please suggest what to do!
Thanks!
Ali
It is resolved now. For
It is resolved now.
For others in case they face similar issue.
The idea is to remove "www.tvwalay.com" from it and the rest remains same!
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Thank you for your kind support!
Regards,
Ali