.htaccess rewrite problem

This is a discussion on ".htaccess rewrite problem" within the PHP Forum section. This forum, and the thread ".htaccess rewrite problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 12th, 2005, 23:58
Junior Member
Join Date: Aug 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
.htaccess rewrite problem

I am trying to make the url
http://www.izledim.com/secim.php?git...-jones-s-diary
as
http://www.izledim.com/bridget-jones-s-diary.html
or something like this.
I used this code but didn't work
Code: Select all
RewriteEngine on
Options +FollowSymLinks
RewriteBase /
RewriteRule type(.*)/(.*).html$ /secim.php?git=$1&i=$2
Can you help please?
Reply With Quote

  #2 (permalink)  
Old Nov 13th, 2005, 00:10
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: .htaccess rewrite problem

Try this:-




Code: Select all
RewriteEngine On
RewriteRule ^([a-zA-Z0-9-]+).html$ secim.php?i=$1 [L]
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work

Last edited by Rob; Nov 13th, 2005 at 00:27.
Reply With Quote
  #3 (permalink)  
Old Nov 13th, 2005, 00:14
Junior Member
Join Date: Aug 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: .htaccess rewrite problem

I get Internal Server Error
Reply With Quote
  #4 (permalink)  
Old Nov 13th, 2005, 00:27
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: .htaccess rewrite problem

I amended the above.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #5 (permalink)  
Old Nov 13th, 2005, 01:08
Junior Member
Join Date: Aug 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Re: .htaccess rewrite problem

Yeah working now thanks.
Reply With Quote
Reply

Tags
htaccess, rewrite, problem

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
rewrite URL name? nate2099 Web Page Design 1 Feb 25th, 2008 10:33
.htaccess redirect problem mmdesign PHP Forum 3 Feb 22nd, 2007 07:48
Error Page / .htaccess Problem lucidspoon PHP Forum 0 Dec 21st, 2005 20:41


All times are GMT. The time now is 06:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43