#1  
Old 11th September 2007, 20:05
tera7 tera7 is offline
Member
 
Join Date: Apr 2007
Posts: 44
Thanks: 0
Thanked 1 Time in 1 Post
Default mod rewrite htaccess

Hi i just try to make my urls simpler for the search engines but i dont manage to get it work.
i searched all the info to the internet so i have properly changed httpd.conf
my error log for apache doesnt have something and my htaccess is like this:

Options +FollowSymLinks
RewriteBase /
RewriteEngine On
RewriteRule ^details/([0-9]+)/$ /details.php?id=$1 [PT]

but it doesnt work although when i try to edit a redirect it works fine.
any suggestion?
Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 12th September 2007, 20:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Please put the RewriteEngine On line before all other rewrite directives.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 12th September 2007, 23:04
tera7 tera7 is offline
Member
 
Join Date: Apr 2007
Posts: 44
Thanks: 0
Thanked 1 Time in 1 Post
Default

No nothing i have made a lot of experiments with htaccess and httpd.conf but nothing worked i also installed a regexp rpm to my server nothing i tried to edit a htaccess with no regex stuff and dont work but redirections work i am totally confused this happens to my two linux dedicated servers and to my xp xamp pc.


the original link is like :http://www.domain.com/details.php?id=217643

where details of course is a php script.

i also tried 5 different mod rewrite rules generators for my htaccess.
Reply With Quote
  #4  
Old 12th September 2007, 23:12
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 52 Times in 48 Posts
Default

I'd try this:

Code:
RewriteEngine On
RewriteRule ^details/([0-9]+)$ details.php?id=$1 [PT]
I use those two rules for myself:
Code:
RewriteEngine On

RewriteRule ^pId/([A-Za-z0-9]+)/id/([A-Za-z0-9]+)/production.png$ production.php?pId=$1&id=$2

RewriteRule ^pId/([A-Za-z0-9]+)/id/([A-Za-z0-9]+)/graph.png$ graph.php?pId=$1&id=$2
Reply With Quote
  #5  
Old 13th September 2007, 01:09
tera7 tera7 is offline
Member
 
Join Date: Apr 2007
Posts: 44
Thanks: 0
Thanked 1 Time in 1 Post
Default

SOLVED!


stupid mistakes to my scripts sorry.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to enable Mod Rewrite AngelDrago Installation/Configuration 9 10th August 2007 23:20
.htaccess and Rewrite woes with Debian4.0 and ISPconfig tony98 Server Operation 1 27th April 2007 02:30
viewing a htaccess file in the ftp Boon-Dog-Danny Installation/Configuration 19 17th August 2006 17:33
Drupal and Apache Rewrite Rules andre Server Operation 10 4th May 2006 21:04
ispconfig and mambo shajazzi Installation/Configuration 70 28th March 2006 19:29


All times are GMT +2. The time now is 14:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.