When someone types in myforum.com/forums.html I want it to display the main forum (myforum.com) with ...../forums.html in the url bar. But without actually having a forums.html file present on the server. Can this be accomplished with htaccess?
I have worked with mod_rewrite for years and never encountered this problem. I am converting html pages to a single php file and it works perfectly. I used htaccess the rewrite the urls to appear the same so that no links would be broken or lose SEO value.
The only problem is that my friend who also helped build the sites added different directories and within those directories are index.htm files that serve as a home page for the separate directory. Like /info/index.htm and /help/index.htm within the root directory. The problem is that for some reason my mod_rewrite directs to the main index.htm rewrite even if I include the whole path to the file. In htaccess I have this so far:
RewriteRule index.htm$ index.php [L] RewriteRule servers.htm$ index.php?action=servers [L] RewriteRule movies.htm$ index.php?action=movies [L] However there is a directory named "info" and inside that directory it has an index.htm file and it seems to conflict with my first mod_rewrite. I tried using:
RewriteRule /info/index.htm$ index.php?action=info [L] and used other methods but none seem to work any ideas?
My worst experience is with Ultimahosts - the ultimate non professional behaviour. Today I have woken up to see my account suspended and without any notice or reminder!
reason: Your account has been terminated following the 1 year expiry the plan. This is the final notification.
Where is my reminder that my account is near expiry? When asked no answer has been recieved till now and that's why I am hoping to get some answer from Mr Mark here along with an opinion of experts and users of this forum...
I'm trying to use mysqlhotcopy on freebsd 6.1 with mysql 5.0.45, but I'm getting this error when executing it:
/libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.8/mach/auto/DBD/mysql/mysql.so: Undefined symbol "mysql_server_init"
at first, I was having problems compiling DBD-mysql, because mysql.h and mysqld_error.h wasn't on the include dir, so I had to add -I/usr/local/mysql-5.0.45-freebsd6.0-i386/include to cflags (I also tried -I/usr/local/include/mysql , but same happened)
since the error persisted, I changed all references to mysql_server_init (deprecated) to mysql_library_init (same for mysql_server_end -> mysql_library_end)
I want a user to type myUrl.com/JohnSmith and go to John Smith's homepage. His homepage is actually a dynamic page that is shared with all users which is myUrl.com/Shared.aspx?ID=1234. I have created a URL rewrite script which finds the folder specified (JohnSmith) and finds the user ID from the database. It then displays the Shared.aspx page for the proper ID.
This works on my local machine because it's using Visual Web Developer as the hosting engine so it executes ASP.NET for every page load. When I upload this to an online host using IIS it fails because there is no folder named JohnSmith. I get a 404 online where I would get the proper page on my machine.
I have tried to work with 3 hosts to make this happen and noone can get this to work. I really need to either know what to tell the host to change or find someone who knows how to do this. I am obviously willing to change hosts if that's what it takes.
A year ago I started up a website for me and some friends. By the end of last year ( December ) the website had died and I knew that I ( being a broke college student ) wouldn't have the funds to pay for a renewal.
I contacted Kazix and told them I was having trouble figuring out how to cancel my account and asked if they could do it for me or inform me how. I received the following email on Dec 18th 2007:
As soon as the hosting is about to end. You will get notice from our billing department.
-- Regards, Mark Senior Administrator fatnetwork.net/"
I figured this email would tell me how to cancel my account if I did not wish to renew it. I never received such an email.
I found out Friday that my banking account was over-drawn. I thought this was through my own error, but when I looked closely today, I noticed it was because 2co.com, the third-party billing company used by Kazix/Fatnetwork, had charged me for hosting renewal and had caused my account to go negative.
I sent them an email informing them that I had asked back in December for my account NOT to be renewed and that they had in fact went ahead and renewed it anyways. I requested that they reimburse me the charge of the domain, hosting, and overdraft. I had wrongly thought that my domain name was processed through them as well.
I received an email from firstname.lastname@example.org saying:
"Your domain is not registered by KAZIX – only hosted See WHOIS by yourself The respond you got not from us – from GoDaddy – your domain registrant
( Who is removed )
You never requrested a cancellation from us – blame yourself for over drafting, you should know where your account hosting with I’ll refund the charge of $44.99 and cancel the 2CO subscription as well as your account with KAZIX– that’s all I can do for you"
I wasn't really expecting them to reimburse my overdraft charges ( really, why should they pay for their mistake that harms others? ). And I fully admit that I did honestly forget that my domain name was registered by my husband and not by Kazix. What did surprise me was the tone of the email. I did use the Kazix's contact form on their website to request that my hosting be stopped. Why would I contact Go-Daddy if I had completely forgot that they were the ones in charge of my domain? If I hadn't contacted Kazix, why did Mark send me an email from fatnetwork in response to my request to cancel my account? Yeah. Someone was just being rude and snippy because they didn't want to admit that they made a mistake.
I sent a reply back to the rude man and informed him that I found his email to be very rude and not a good way to handle customers. I also informed him that I did use the contact page on Kazix's website and that I fully knew who my hosting was through.
I received this email as a reply:
"I’m sure you have some other things to do Saturday night – not only be rude I’ve responded you( from home, because billing is working only Mon-Fri ) I’ve refunded your charge immediately I’m very glad you are not our customer anymore Have a great weekend Jacob Billing Department"
Me and my husband were both floored when we read this. Who would handle customer support this way? I couldn't believe that he would have the gall to call me rude just for me pointing out his own rudeness. Then of course there is the nice touch of "I'm very glad you are not our customer anymore." Could you imagine someone in retail or any other face-to-face business practice saying this to you?
You know I didn't leave Kazix because I found it to be "bad." I just left it because of my own financial reasons. I had some technical problems with them before and found them to be helpful. If I hadn't experienced all of this, I probably would have recommended them to others and used them again. Now? I seem them as a shady group of characters who care more about their customer's money than they do about their actual customers.
As I see it now, they obviously did not want me to cancel my hosting with them and obviously wanted to renew my account for the money. What about my say in not wanting their services anymore and wanting to keep what little money I had left in my checking account? It didn't matter.
Stay away from Kazix and Fatnetwork. Let my bad experiences be your warning.
I'm not even really sure if rewrite is what I need, but basically I have an alias/proxy setup on apache which points mysite.com/itunes/ to mysite2.com/pr/itunes/. My script php executes on the second server, so it assumes that the address should be mysite.com/pr/itunes/. I need to rewrite this to mysite.com/itunes. Here's my code:
RewriteEngine on RewriteBase / RewriteRule ^itunes/(.*).php$ pr/itunes/(.*).php