|
Re: Shorten URLs with MOD_REWRITE [message #21901 is a reply to message #21896] |
Mon, 27 December 2004 21:20 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
It is not hardcoded into the source, it is specified inside the templates. If you can safely work without index.php, simply run something like this:
perl -p -i -e 's/index\.php//' *.tmpl
inside the template directory.
FUDforum Core Developer
|
|
|
|
|
Re: Shorten URLs with MOD_REWRITE [message #21922 is a reply to message #21915] |
Tue, 28 December 2004 20:37 |
Anonymous
|
|
|
|
It works like a dream. Here is my .htaccess directives:
RewriteEngine On
RewriteBase /forum
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^forum/(.*) index.php/$1 [L]
Thank you very much for your assistance.
Best regards.
Frank
|
|
|
Re: Shorten URLs with MOD_REWRITE [message #21990 is a reply to message #21922] |
Thu, 06 January 2005 22:29 |
srchild
Messages: 88 Registered: December 2003 Location: UK
Karma: 1
|
Member |
|
|
Anonymous wrote on Tue, 28 December 2004 20:37 | It works like a dream.
|
I was interested to try this.
I tried to modify compiler.inc not to put anything for ROOT, by changing:
$cmpl['ROOT'] = 'index.php';
to
$cmpl['ROOT'] = '';
but then my URL's lost not only index.php but also the directory name 'forum'
Trial and error showed that this works:
$cmpl['ROOT'] = '.';
Simon Child
|
|
|
|
|
|
|
Re: Shorten URLs with MOD_REWRITE [message #28819 is a reply to message #22024] |
Fri, 11 November 2005 19:07 |
hossam
Messages: 9 Registered: November 2005
Karma: 0
|
Junior Member |
|
|
Works like a charm here too with some modifications..
in /include/compilers.inc $cmpl['ROOT'] = 's';
my mod_rewrite rules
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/s(.*) /index.php/$1 [L]
my Fudforum installation dir is /
added AcceptPathInfo On in /etc/httpd/conf/httpd.conf
Now, forums looks "more" profissional as forum.com/s/t/3268/30e0a8b938d79cd5a1799ca5b455de6c/
Time to get rid of the session id part and to have articles name in URL for SEO purposes.
Cheers,
Hossam
|
|
|