Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mod_rewrite
#9
I have the same problem.
How can I solve this situation?
My .httacces file is written as follows:
-------------------
#
# 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

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
<IfModule !mod_authz_core.c>
Deny from all
</IfModule>
<IfModule mod_access_compat.c>
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
</IfModule>
</Files>

<Files sitemap.xml>
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>
<IfModule mod_access_compat.c>
Allow from all
</IfModule>
<IfModule mod_authz_core.c>
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
</IfModule>
</Files>

# handle rewrites for fancy urls
<IfModule mod_rewrite.c>
RewriteEngine on

# Usually RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /pp1/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
</IfModule>
-------------------
What should I do to make my Fancy URLs work well?
Im GetSimple in the directory /public_html/pp1/
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)