.htaccess forum somewhere?

A

Adrian Leontovich

Guest
Hey all.. I'm a LINUX newbie, and have been tasked with making some specific .htaccess rewrite changes, and I need to find a forum or experts somewhere on the topic to help point me to one or two "how to's" to accomplish my needs. Or should I just post my needs here? Sorry for being such a noob.. thanks
 


Well, you could start by asking specific questions here. If needed we could direct you to another site once we know the nature of your questions.
 
I really know nothing about web server configuration, but found this very quickly:

"You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any directive that you can include in a .htaccess file is better set in a Directory block, as it will have the same effect with better performance."

The Apache page has more fun stuff like that, including a link to their mailing lists if you want to participate with them there. http://httpd.apache.org/docs/2.2/howto/htaccess.html

Another site that might help: http://htaccess-guide.com/
 
Great feedback atanere, thanks. I'll look into that. Here's the scenario I'm facing...

Customer has MANY domains, each needing to point to a different subdirectory off the root of the webserver, where those language files exist. We need a rewrite to say the following:

domain.ca should retrieve the content from the /can subdirectory, while still showing only domain.ca in the address bar. I've only been able to get the rewrite to send the user to the right place, and show the right content, except the address shows as domain.ca/can .... make sense?
 
Yeah, you went over my head, sorry. I knew that would happen pretty quickly! :confused:

Maybe someone on the forum here will be more knowledgeable and can help you.

Good luck!
 
Hmmm may like here, my bro
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ $1 [L,R=301]
RewriteCond %{REQUEST_URI} !\.(jpg|png|css|js|php|txt|html)$
RewriteRule . /index.php [L]
</IfModule>

This rewrite rule with htaccess
 
I'm also looking for a forum to discuss .htaccess. Do you mind if I ask a question here in this thread please?
 
Last edited:
G'day @Ryder Cragie and welcome to linux.org :)

I would suggest starting your own Thread in this subforum, as this one is almost 7 years old, but you can always link to it if you think the content so far may be useful.

Good luck

Chris Turner
wizardfromoz
 
Done.


Thanks.
 
Last edited:

Members online


Latest posts

Top