Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Do we have any htaccess/Rewrite Gurus in the house?
Old 11-14-2007, 07:22 PM Question Do we have any htaccess/Rewrite Gurus in the house?
loganeast's Avatar
Skilled Talker

Posts: 80
Name: Joe Williams
Location: Phoenix, AZ
Trades: 0
I've been fighting something on my web site for about a week now. I'm looking for help with this.

The first time you visit this url: http://www.purepointgolf.com/store/s...est_product_1/ you get redirected to the wrong page (//store/store.php) instead of the correct page (/store/store.php?name=Test_Product_1). But if you type it into the address bar again (or copy paste or hit a link) it works just fine.

Does anyone have any idea why it wouldn't work the first time, but works great everytime thereafter? I'll insert my htaccess code for reference.

Thanks everyone.

Joe

Code:
Options +FollowSymLinks
RewriteEngine on
 
RewriteRule ^store/p/(.*)/ store.php?p=$1 
RewriteRule ^store/p/(.*) store.php?p=$1 
 
RewriteRule ^articles/(.*)/ articles.php?title=$1 
RewriteRule ^articles/(.*) articles.php?title=$1 
 
RewriteRule ^store/n/(.*)/ store.php?name=$1
RewriteRule ^store/n/(.*) store.php?name=$1
 
RewriteRule ^search/advanced/(.*)/ search.php?adv=1&t=$1
RewriteRule ^search/advanced/(.*) search.php?adv=1&t=$1
RewriteRule ^search/products/(.*)/ search.php?prod=1&t=$1
RewriteRule ^search/products/(.*) search.php?prod=1&t=$1
RewriteRule ^search/article/(.*)/ search.php?art=1&t=$1
RewriteRule ^search/article/(.*) search.php?art=1&t=$1
__________________
Joe Williams -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by loganeast; 11-14-2007 at 07:23 PM..
loganeast is offline
Reply With Quote
View Public Profile Visit loganeast's homepage!
 
 
Register now for full access!
Old 11-20-2007, 07:01 AM Re: Do we have any htaccess/Rewrite Gurus in the house?
L a r r y's Avatar
Super Talker

Posts: 100
Name: Larry K
Location: Arizona
Trades: 0
I just tried your link on four Web browsers: On Windows XP Professional, I used Firefox, IE7 with the Quero Toolbar, Opera 9 and Safari for Windows. In each case on the first visit I see the link in the address bar, and a Test Product #1 with your price of $30.00.

Did you find and fix the issue?
L a r r y is offline
Reply With Quote
View Public Profile Visit L a r r y's homepage!
 
Old 11-20-2007, 09:58 AM Re: Do we have any htaccess/Rewrite Gurus in the house?
loganeast's Avatar
Skilled Talker

Posts: 80
Name: Joe Williams
Location: Phoenix, AZ
Trades: 0
Yes, I got it working! Sorry, I would have posted that sooner but last time I was on the board it was moving to a new server. I found a PHP script that was redirecting unexpectedly. Duh. I thought that's what it might have been but I couldn't find anything to prove it.

Thanks for the help, though! I really appreciate it.
__________________
Joe Williams -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
loganeast is offline
Reply With Quote
View Public Profile Visit loganeast's homepage!
 
Reply     « Reply to Do we have any htaccess/Rewrite Gurus in the house?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 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.11832 seconds with 12 queries