Current location: Hot Scripts Forums » Programming Languages » PHP » Search Engine URL: htaccess, dynamic php, & Frontpage ext.


Search Engine URL: htaccess, dynamic php, & Frontpage ext.

Reply
  #1 (permalink)  
Old 11-08-03, 07:45 PM
cebuy cebuy is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Search Engine URL: htaccess, dynamic php, & Frontpage ext.

I need to know if there is someone other there that would know the solution to this (and not the easy way out by just junking Frontpage :-)) Anyway, I have Frontpage extensions on my server and I edited the htaccess file to read

RewriteEngine on
RewriteRule ^local-(.*)-(.*)-(.*).html$ shop.php?Category=$1&SubCategory=$2&ID=$3

What happens is when http://www.mysite.com/local-electronics-tv-1.html is typed in, the htaccess file makes it read it as http://www.mysite.com/shop.php?Category=$1&SubCategory=$2&ID=$3

Anyway, when I add this code to the htaccess file, it stops Frontpage from recognizing the web online. I have to physically remove the code temporarily from htaccess to edit it with Frontpage. Any ideas out there to solve this? I still want to use FP, so please no cracks :-)

Please look at http://www.programmingtalk.com/showt...4&goto=newpost and see where I have gotten to. Thanks! By the way, that code idea worked for the url transformation.
__________________
Thanks!
Chris Chandler
WebMaster of:
Loan Quote, Christian eBuy, & North Alabama,
Reply With Quote
  #2 (permalink)  
Old 11-09-03, 10:12 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
I have no experience with frontpage and it's extensions. what exactly does frontpage extensions do, or not do when you have rewrite turned on?

I suspect it has to do with the fact that online, the file seems to be named local-electronics-tv-1.html and the local file is called shop.php
Reply With Quote
  #3 (permalink)  
Old 11-09-03, 01:06 PM
cebuy cebuy is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
That is not the problem. The url works fine and I even changed the name in the htaccess file to shop-cat-subcat-product.html and the url change (using RewriteEngine)still works great. The problem is still however this... the Frontpage extensions will not allow me to log into the online web. WHat is the hangup? Any suggestions anyone out there?

Here is what my htaccess file looks like...

PHP Code:

<Files shop
ForceType application/x-httpd-php 
</Files
# -This just makes a script called 'shop' process as php.  Thisdoes not cause 
# -problems with Frontpage   

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<
Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName [url]www.mysite.com[/url]
AuthUserFile /home/hunt/public_html/_vti_pvt/service.pwd
AuthGroupFile 
/home/hunt/public_html/_vti_pvt/service.grp

# -This is the url rewrite Engine.
# -I tried placing it after & before the Frontpage stuff above but still stops me 
# -from logging into the online web  

 
RewriteEngine on
 RewriteRule 
^shop-(.*)-(.*)-(.*).htmlshop.php?Category=$1&SubCategory=$2&ID=$
Reply With Quote
  #4 (permalink)  
Old 11-10-03, 03:55 AM
Stefan's Avatar
Stefan Stefan is offline
Junior Code Guru
 
Join Date: Jun 2003
Location: Utrecht, The Netherlands
Posts: 599
Thanks: 0
Thanked 0 Times in 0 Posts
ok, but what do these frontpage extensions do then? allow you to edit files online? or something else?
Reply With Quote
  #5 (permalink)  
Old 11-10-03, 07:42 AM
cebuy cebuy is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Reply With Quote
  #6 (permalink)  
Old 11-12-03, 11:45 PM
mediatech mediatech is offline
New Member
 
Join Date: Nov 2003
Location: San Marcos, CA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SEO Expert Available nakulgoyal Job Offers & Assistance 2 08-14-04 12:38 PM
php - .pdf indexing search engine jmkoch Script Requests 3 03-24-04 01:49 PM
Simple search engine for website Bullen Script Requests 1 12-18-03 11:42 AM
PHP search engine flipsix PHP 3 10-19-03 02:07 PM
search engine question herman PHP 2 08-04-03 11:41 PM


All times are GMT -5. The time now is 05:41 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.