Web Analytics Made Easy -
StatCounter AutoGenerate RewriteBase - CodingForum

Announcement

Collapse
No announcement yet.

AutoGenerate RewriteBase

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AutoGenerate RewriteBase

    Is there a way to generate RewriteBase deending on where the script is located? The reason is ask is i have this .htaccess file
    Code:
    RewriteEngine On
    RewriteBase /demos/blog/
    Options +FollowSymLinks -Multiviews
    
    # Login
    RewriteRule ^login$ index.php?p=login [QSA,L]
    RewriteRule ^login/$ index.php?p=login [QSA,L]
    If "RewriteBase /demos/blog/" is not in the file then the rules dont work, i want to be able to distribute the script but people not have to edit this file, is there a way to do this?

  • #2
    can i use mod_rewrite instead if the RewriteBase rule? If so, what would this look like?

    Comment

    Working...
    X