Old 11th September 2007, 20:05
tera7 tera7 is offline
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?
Reply With Quote
Sponsored Links
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,743 Times in 2,577 Posts

Please put the RewriteEngine On line before all other rewrite directives.
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
Old 12th September 2007, 23:04
tera7 tera7 is offline
Join Date: Apr 2007
Posts: 44
Thanks: 0
Thanked 1 Time in 1 Post

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
Old 12th September 2007, 23:12
sjau sjau is offline
Local Meanie
Join Date: Apr 2006
Location: Switzerland
Posts: 1,146
Thanks: 4
Thanked 55 Times in 51 Posts

I'd try this:

RewriteEngine On
RewriteRule ^details/([0-9]+)$ details.php?id=$1 [PT]
I use those two rules for myself:
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
Old 13th September 2007, 01:09
tera7 tera7 is offline
Join Date: Apr 2007
Posts: 44
Thanks: 0
Thanked 1 Time in 1 Post


stupid mistakes to my scripts sorry.
Reply With Quote


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 08:08.

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