3 Replies - 701 Views - Last Post: 18 January 2008 - 07:44 AM

#1 abhini268  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 17-January 08

.htaccess help

Post icon  Posted 17 January 2008 - 10:10 AM

Hello All,

I am working on .htaccess file having code as below,

RewriteEngine On
RewriteRule ^csp([0-9]+)$ index.php?id=$1
RewriteRule ^csa([0-9]+)$ index.php?id=$1
RewriteRule ^ID([0-9]+)$ index1.php?id=$1

The site was working with same file on other server. When we shifted the server, the problem is in redirection of files.

If I use www.mydomain.com/cd/ID1234567895/ then it works, but if I remove / from the end of url then file is not redirected to index1.php.

Do anyone have knowledge about the solution? I dont know why this problem arises. Is there any setting required for .htaccess depending on server?

Please reply asap.
Thanks in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: .htaccess help

#2 capty99  Icon User is offline

  • i am colt mccoy
  • member icon

Reputation: 98
  • View blog
  • Posts: 10,081
  • Joined: 26-April 01

Re: .htaccess help

Posted 17 January 2008 - 01:39 PM

are you on the same type of server?

some servers out-of-the-box just don't work with .htaccess, might take a little extra configuration.

does it give you a specific error message or anything?
Was This Post Helpful? 0
  • +
  • -

#3 abhini268  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 17-January 08

Re: .htaccess help

Posted 17 January 2008 - 10:16 PM

Hello capty99,

Thanks for reply.
Server type is same. We are using Linux.
For configuration all other .htaccess files except this folder are running properly.
In this file, problem is that if i use

RewriteRule ^ID([0-9]+)/$ index1.php?id=$1
instead of

RewriteRule ^ID([0-9]+)$ index1.php?id=$1

then the file is working. I dont know why it happens.

Please let me know if u have solution for that. its very urgent for me to solve the issue.


Thanks,
Was This Post Helpful? 0
  • +
  • -

#4 ReekenX  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 20-January 07

Re: .htaccess help

Posted 18 January 2008 - 07:44 AM

I have the same problem in my site too, abhini268 :sad3:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1