Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Permalink help!
#1
It will become "404" errors if it previews, although the following set points were used.
I would like to surely create in .html form.

Please let me know!

1.「Permalink」
 %slug%.html
↓
2.「Fancyurl」
 on
↓
3.「.htaccess」
AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files sitemap.xml>
Order allow,deny
Allow from all
Satisfy All
</Files>

RewriteEngine on

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)\.html$ index.php?id=$1 [QSA,L]
Reply
#2
Works for me, rules look fine.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
Try:

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

http://get-simple.info/forums/showthread...68#pid7568
Reply
#4
Is that not the same exact rule but without underscore support ?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
There's no $ just after html

Yes shawn_a, I took it from a very old thread, when GS didn't allow underscores.
Better this one:

Code:
RewriteRule /?([A-Za-z0-9_-]+).html?$ index.php?id=$1 [QSA,L]

http://get-simple.info/forums/showthread...5#pid26805
Reply
#6
$ just means end of string, should be the same logicwise.
Don't know how there could be an invisible character after html
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
@leader0403
Are you sure your server supports .htaccess rewriterules?
Did you tried the default GS one with a custom permalink like e.g.: %slug% , or just leaving it empty and enable fancy urls?
Reply




Users browsing this thread: 1 Guest(s)