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 and 301 redirects to html from php

Featured Replies

Hi,

 

Hope someone can help me achieve the following.

 

I have my dynamically generated pages using php - for example:

 

www.dvd-and-media.com/cartridges_purchase.php?Model=HP+Photo+Smart+P1115

 

And then I have written a piece of code to get the following, basically it replaces the 'cartridges_purchase.php?Model=' with 'Inkjet-Cartridges-' then it replaces the '+' signs in the rest of the URL with '-' and adds a html extension - so I then end up with the following URL

 

www.dvd-and-media.com/Inkjet-Cartridges-HP-Photo-Smart-P1115.html

 

However what I need to do is have google find the .html pages instead of the php ones and serve up the html ones when the users click though to my ink products.

 

I presume I need some sort of mod rewrite and 301 redirects to the static html pages so that the search engines pick the html files - please help.

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.