NameSilo

Mod_rewrite expert needed! Good $$ Small job.

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
NamecheapNamecheap
Watch
Status
Not open for further replies.

itnashvillecom

Account Closed
Impact
1
My .htaccess guy is out for the week, I need help.

I need to keep this directory structure as the user navigates my directory:

/region/city/category/page/t/

I tried this:

Code:
RewriteEngine on
RewriteBase /JOB/

RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

RewriteRule ^(.*)/$ directory.php?region=$1 [L,QSA]
RewriteRule ^(.*)/(.*)/$ directory.php?region=$1&city=$2 [L,QSA]
RewriteRule ^(.*)/(.*)/(.*)/$ directory.php?region=$1&city=$2&cat_name=$3 [L,QSA]
RewriteRule ^(.*)/(.*)/(.*)/(.*)/$ directory.php?region=$1&city=$2&cat_name=$3&p=$4 [L,QSA]
RewriteRule ^(.*)/(.*)/(.*)/(.*)/(.*)/$ directory.php?region=$1&city=$2&cat_name=$3&p=$4&t=$5 [L,QSA]

But only the first link works right. The others dont pass the variables correctly. I will pay $30 (paypal) and 150NP$ for the solution. Need imediately.

The process:

The user chooses a region, next page chooses a city, next page chooses a category, then next is pagenumber, then a last variable named $t.
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
My solution sent!
 
0
Close
Sorry, that didn't work.
 
0
Close
Hi,
Ive sent you a PM with my fix for it.
Let me know if it works fine for you :)


Thanks
 
0
Close
sent a second solution...
 
0
Close
smartie19889 got it first, thanks everyone!
 
0
Close
Glad it all worked for you :)
just awaiting payment.

Thanks
Jason
 
0
Close
Sent:D
 
0
Close
Payment Received.

Thanks again :) any other problems dont hesitate to contact me.

Thanks
Jason
 
0
Close
:td:
i'm the second one... the first of losers...
:tu:
 
0
Close
sorry itnashvillecom i just logged in for the day and saw your pm, I'm glad that you have resolved these issues.
 
0
Close
Status
Not open for further replies.
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back