Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
nomad

Alternative To .Htaccess And Mod_Rewrite

Recommended Posts

Hi Larry,

 

First of all this Effortless E-Commerce has been very helpful in my understanding of build e-commerce sites. I truly feel it is the best resource out there on the subject. I am new to PHP and MySQL, and your books have helped me learn in a short period of time.

 

My question has to do with .htaccess and mod_rewrite. I am using Yahoo Small Business as a host (for now), but they do not allow .htaccess. I know it would be easier for me to change hosting services, but I cannot at the moment, so I need to find a way around this problem.

 

You stated on page 175 under the Tips sidebar that 'If you can’t use mod_rewrite on your server, just skip this section and change every URL in the HTML files accordingly.' Where exactly would I change these URLs? Is there an alternative to this similar to the alternatives for the stored procedures? Thank you in advance.

 

Share this post


Link to post
Share on other sites

What I think he means is that you have to change all the URLs to the actual URLs.

So for example, instead of maybe using a URL like the following:

example.com/2/white-coffee-mug/

 

You need to use a less appealing URL that links directly to the page with the right parameter(s) like the following:

example.com/index.php?item=2

 

Does that make sense?

Share this post


Link to post
Share on other sites

Yes, this does make sense. I have seen this done before. Is this just a matter of me creating a variable for product id numbers and putting them in the URL?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...