Page 1 of 3
Enabling Short URL Trouble
Posted:
Fri Mar 11, 2011 4:29 am
by danfratamico
I am trying to enable the short URL function, and I tried to enable my mod_rewrite which is in my .htaccess file. I called up GoDaddy and they have it enabled on their end, they told me to edit my .htaccess. However, I noticed that you put the .htaccess in a RAR, to make it .htaccess.rar? Why was this done? Please tell me how I would enable the mod_rewrite function because I opened the unzipped .htaccess file and opened it in notepad and I was able to see "RewriteEngine On". Could my problem be that I have to unzip the .htaccess file and place it in my directory unzipped? Please let me know. I recently installed the 1.0 BETA release on March 3rd, 2011. Thank you.
Re: Enabling Short URL Trouble
Posted:
Fri Mar 11, 2011 8:19 am
by PeterS
The .htaccess was placed in a RAR archive file, because windows causes an Internal Error page as it doesn't like the .htaccess files. Just unrar the file and place it in the main dir of the script.
Re: Enabling Short URL Trouble
Posted:
Fri Mar 11, 2011 1:34 pm
by danfratamico
I did just that, so now my .htaccess file is located in my main directory (
http://download.example.com). When I enable the short URL function, for example, it gives me the short url for a .docx file as "http://download.example.com/721Example.docx" which I believe it the correct type URL. However, when I upload a file and click on the link, it just redirects me to my main index.php page (of the script) and does nothing. Please help me out and get me running. Below is what is inside my .htaccess file. Thank you.
- Code: Select all
<Files *.dfh>
order allow,deny
deny from all
</Files>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ download.php?file=$1 [L]
Re: Enabling Short URL Trouble
Posted:
Fri Mar 11, 2011 6:20 pm
by PeterS
Yes, I believe this is a server configuration problem on your end. On
http://www.daddyscripts.com/demo/dfh I have unrared .htaccess.rar, placed .htaccess in the main dir and now short url works.
1. Check .htaccess works in general on your server.
2. Check if mod_rewrite is installed with apache on the server.
3. If not, contact your web hoster in regards to this issue and request they install/enable mod_rewrite for you.
Re: Enabling Short URL Trouble
Posted:
Fri Mar 11, 2011 8:05 pm
by danfratamico
I just contacted GoDaddy and they told me that mod_rewrite is enabled on their Apache servers by default. I even tried placing the .htaccess file in the main directory of my domain (
http://www.example.com) and it still doesn't work. They told me it is a problem with the script but then I told them that you have a demo with the same exact .htaccess file and it works. Is your site self-hosted?
Re: Enabling Short URL Trouble
Posted:
Sat Mar 12, 2011 12:50 am
by PeterS
That's odd, GoDaddy usually doesn't have problems running DFH. If you still cannot resolve this issue, I don't mind looking at it for you when I have the time. Just PM or e-mail me your FTP or preferable SSH login details if available.
I have PMed you the e-mail address.
Re: Enabling Short URL Trouble
Posted:
Sat Mar 12, 2011 9:13 pm
by danfratamico
I have sent you the login details for a FTP account I made for my site that FTP's you directly into my /download directory of my site which is also a subdomain, so it can be reached at
http://download.technofrat.com. Thank you.
Re: Enabling Short URL Trouble
Posted:
Sun Mar 13, 2011 2:10 am
by PeterS
Okay, I've looked at it for you and realized an odd thing. Even when .htaccess is deleted and not present, any link entered after
http://download.technofrat.com/ redirects to the current dir instead of showing a 404 error page or message. This can indicate you have another .htaccess file (maybe in technofrat.com or else where) which is overriding the .htaccess in the subdomain download. Alternatively, it can be another server configuration causes this and so I suggest you check if anything else may be causing this before I look further into this issue.
Re: Enabling Short URL Trouble
Posted:
Sun Mar 13, 2011 1:47 pm
by danfratamico
I have removed all .htaccess files I know of and left only the .htaccess files in my /download directory and it still doesn't work. I'm not quite sure what to do anymore. By the way, I upgraded that FTP account I made for you to have admin rights to my full domain FTP, not just the /download directory so if you want to take a look at it, please do so. Thank a lot.
Re: Enabling Short URL Trouble
Posted:
Sun Mar 13, 2011 3:55 pm
by PeterS
danfratamico wrote:I have removed all .htaccess files I know of and left only the .htaccess files in my /download directory and it still doesn't work. I'm not quite sure what to do anymore. By the way, I upgraded that FTP account I made for you to have admin rights to my full domain FTP, not just the /download directory so if you want to take a look at it, please do so. Thank a lot.
This sounds very odd to me. May I ask why you insist on activating the short URL feature?