Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mod_rewrite
#8
(2019-11-07, 03:17:58)Carlos Wrote: Check the wiki:
http://get-simple.info/wiki/config:htaccess -> .html instead of slash (/)

Hi carlos

Can you post the complete htaccess code?

Im trying to merge htaccess code for alway use www and redirect to non https version while keeping the fancy url

====edit

in case someone need it , heres my working htaccess code


Code:
# Redirect HTTPS to HTTP
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

#url fancy
RewriteRule ([A-Za-z0-9-]+).html index.php?id=$1 [QSA,L]

#
AddDefaultCharset UTF-8
Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php
Reply


Messages In This Thread
mod_rewrite - by kotos - 2009-10-29, 02:08:57
RE: mod_rewrite - by puncakpass - 2019-11-06, 23:09:20
RE: mod_rewrite - by Carlos - 2019-11-07, 03:17:58
RE: mod_rewrite - by puncakpass - 2019-11-07, 13:38:25
RE: mod_rewrite - by dancretu@hotmail.com - 2022-10-24, 00:29:22
mod_rewrite - by ccagle8 - 2009-10-29, 06:44:30
mod_rewrite - by kotos - 2009-10-29, 19:18:41
mod_rewrite - by ccagle8 - 2009-10-29, 20:10:54
mod_rewrite - by kotos - 2009-10-30, 17:02:23



Users browsing this thread: 1 Guest(s)