Jump to content
thirty bees forum

Does anyone use a local host environment on a Mac? Does your dev site work with friendly URLs ON?


alwayspaws

Recommended Posts

Before reading the below, please note that it is not an “image” problem.

In my thirtybees local environment If I turn Friendly URL’s ON, I get “page not found” after clicking anything from the home page. A side effect is that “new products” images and “featured category” images are camera icons.

0_1512054302963_friendly-urls-on-new-products-images-and-featured-category-images-are-camera-icons.jpg

If I turn friendly URLs OFF then everything works fine.

0_1512054462380_friendly-urls-off-new-products-images-and-featured-category-images-are-correct.jpg

Below is the code contained in my Virtualhost apache2 configuration and the .htaccess with URL rewrites (friendly URLs) set to "ON". I had to attach a plain text file because when I entered the code directly in this message, there was some strange formatting.

01511917536618Virtualhost-apache2-conf-and-htaccess-with-rewriteON.txt

Link to comment
Share on other sites

@mdekker @lesley @Traumflug can you please look at the code and let me know what is wrong?

I’m on a deadline because I have to leave my current hosting plan for a downgraded one. That means I have to delete my test site.

Appreciate any help you can give me.

Thank you, Stephanie

Link to comment
Share on other sites

In Prefs - SEO & URLs I have friendly URL set to "yes". Redirect to the canonical URL: I set it to "No redirection". Saved.

I regenerated the htaccess file and saved.

I still have the same problem of PAGE NOT FOUND.

I also turned on "Disable Apache's mod_security module" but that doesn't help, either.

Note: I'm not using MAMP.

Link to comment
Share on other sites

@alwayspaws

@alwayspaws said in Need code help with apache2 configuration for localhost:

In Prefs - SEO & URLs I have friendly URL set to "yes". Redirect to the canonical URL: I set it to "No redirection". Saved.

I regenerated the htaccess file and saved.

Were these settings the same prior to the error? Do you recall what else did change before you started getting these 404s?

Link to comment
Share on other sites

The first thing I do with these problems is obliterate the cache in all three browsers. Maybe I need a 4th browser. :) (good thing for password vaults.) Anyway:

With friendly urls ON, the links look like this, but I get the 404 Page not Found:

http://thirtybees.local/holidays-and-events/puppies-and-dogs-festive-christmas-hair-bow

With friendly urls OFF, the links look like this, but the pages are correct:

http://thirtybees.local/index.php?id_product=502&controller=product

Link to comment
Share on other sites

marci123 about 18 hours ago

Depending on your operating system and server it could be a problem with the image path. Windows for example is using backslashes for the absolute path such as H:\xampp\htdocs the browser url is using slashes http://localhost/… Could it be that there is a wrong image path defined somewhere?

Hi, Marci,

Everything is forward slashes in my browsers for all websites, but that’s quite a good observation. I’ll examine the code.

How do you interpret it: http://thirtybees.local/index.php?id_category=51&controller=category

Is it homepage / category 51 / subcategory?

For this one: I can see that the number is my product ID:

http://thirtybees.local/index.php?id_product=360&controller=product

Link to comment
Share on other sites

@lesley I may have tracked down the problem unless "SCHEMA of URLs' is located elsewhere in my TB local environment. Is there anywhere else it can be?

On the left of the image is my local environment. It does not have "SCHEMA OF URLS".

The right half is my live site Prefs - SEO & URLs and it does have "SCHEMA OF URLS".

0_1512054922540_local-site-no schema of urls but live site has schema of urls.jpg

Link to comment
Share on other sites

LOL. I "heard" that the first time but forget about it being a local environment. It has almost all the exact settings as my test site online does, so maybe someone else can come up with something. I'm so good at asking what no one has ever heard of before. I do this all the time, in public and online. :)

I'll reinstall as a last resort. :(

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...