Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mod_rewrite
#6
(2009-10-29, 20:10:54)ccagle8 Wrote: try this:
Code:
AddDefaultCharset UTF-8
RewriteEngine on

RewriteBase /getsimple2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [L]

hello admin
what is the correct htacces for using URL Fancy
i use this slug
Code:
%parent%/%slug%.html

and htaccess
#Force www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yanaponsel.my.id [NC]
RewriteRule ^(.*)$ http://www.yanaponsel.my.id/ $1 [L,R=301,NC]
#

Code:
AddDefaultCharset UTF-8
RewriteEngine on

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [L]
# GetSimple CMS htaccess ROOT file
# apache 2.4
#

# The following require certain allow overrides, if getting 500 error comment them out one by one
# can be resolved in apache httpd.conf to ensure security alternatives

# override charset
AddDefaultCharset UTF-8

# prevent directory listings
Options -Indexes

# Follow symbolink links, This is required for rewrites on some hosts
Options +FollowSymLinks

# Set the default handler.
DirectoryIndex index.php


but my post is 404 not found
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: 2 Guest(s)