Tech Support Guy banner
  • Please post in our Community Feedback thread for help with the new forum software! If you are having trouble logging in, please Contact Us for assistance.
Status
Not open for further replies.
1 - 5 of 5 Posts

·
Registered
Joined
·
25 Posts
Discussion Starter · #1 ·
I'm in the process of converting a site with frames to PHP. I use the following rewriting rules to shorten the links:

Code:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([^/]*)\.html$ index.php?cat=1&id=$1 [R,L]
RewriteRule ^login$ othernews/login.php [R,L]
RewriteRule ^([^/]*)/([^/]*)\.html$ index.php?cat=$1&id=$2 [R,L]
It works correctly on my pc. I tried to test the file on the server and it displayed some errors. I didn't have time to look into it so I removed the file, but after I did that all the link showed up broken and the site didn't show up anymore.

I need help to understand what's going on and fix it. The owner of the site is not happy. Thanks.
 

·
Registered
Joined
·
696 Posts
stardust,

So the only thing you did is put the .htaccess file in place on the server, see that it didn't work, then remove it. After that all links are broken. Is that correct?

Doesn't sound right. We definitely need more details about the errors you saw (check the server logs), and also whether you did *anything* else.
 

·
Registered
Joined
·
25 Posts
Discussion Starter · #4 ·
Thank you DrP and ehymel for offering to help. I figured out that what I had to do was upload an empty file in order to have the rules erased from the memory. I corrected the rules and now it works.
 

·
Registered
Joined
·
22 Posts
It might be the problem in your hosting server, it means the hosting provider doesn't allow to create an htaccess fiile. I've already seen this kind of problem and solution.. If you want still to create a friendly seo url, first is to navigate their php server by printing phpinfo(); on your php file. Read all of them and find the text about htaccess if enabled or disabled.
 
1 - 5 of 5 Posts
Status
Not open for further replies.
Top