Reply
.htaccess help
Old 09-29-2007, 12:48 PM .htaccess help
Super Talker

Posts: 111
Hey guys, I'm trying to rewrite my URL's using .htaccsess and I found a good website that generates the info.

Let's just say, the ROOT folder of my test website is:
http://domain.com/test2/

This is the .htaccess I got so far.
Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteRule index/(.*)/(.*)/(.*)/(.*)/$ /test2/index.php?$1=$2&$3=$4
It works and all, but I do not like the current URL structure to access the page, which is.
http://domain.com/test2/index/area/c...age/downloads/

I want it to be like
http://domain.com/test2/crazy/downloads

For reference, this is how my URL structure is without the .htaccess
-------------------------
__________________
martint.net

Last edited by sixpacgenius : 09-29-2007 at 01:30 PM.
sixpacgenius is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 09-29-2007, 06:16 PM Re: .htaccess help
maxxximus's Avatar
Extreme Talker

Posts: 176
Name: Rob
Location: UK
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)/(.*)/$ /test2/index.php?area=$1&page=$2

Should do it.

Last edited by maxxximus : 09-29-2007 at 06:19 PM.
maxxximus is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to .htaccess help
 

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11346 seconds with 13 queries