Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

htaccess friendly url problem

Featured Replies

Hi all, i have written a custom shopping cart and i just need the urls to be friendy

 

i have the following url

 

oakfurniture.dev/oak-furniture.php?oak-furniture=BROOKLYN-OAK-4-DRAWER-CHEST

 

i would like it to be

 

oak-furniture.dev/oak-furniture/BROOKLYN-OAK-4-DRAWER-CHEST

 

i have in my .htaccess

 

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^oak-furniture/(.*)$ /oak-furniture.php?id=$1

and i have restarted apache

 

can anyone help with this

 

thanks

You didn't say there was an error?

Add something like print_r($_GET) or var_dump($_GET) and see if the variable is being passed though. In your original call you say ?oak-furniture= whereas your .htaccess file says ?id=

  • Author

You didn't say there was an error?

Add something like print_r($_GET) or var_dump($_GET) and see if the variable is being passed though. In your original call you say ?oak-furniture= whereas your .htaccess file says ?id=

Hi thanks for pointing it out i am getting this error now

Notice: Undefined index: oak-furniture in

  • Author
RewriteEngine On
RewriteRule ^oak-furniture/([A-Za-z0-9-]+)/?$ oak-furniture.php?oak-furniture=$1 [NC]

this worked for me thanks for pointing out my copy and paste error

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.