.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
 


OP
R

rstanley

Guest
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.
 
OP
A

atanere

Guest
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/
 
OP
A

Adrian Leontovich

Guest
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?
 
OP
A

atanere

Guest
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!
 
OP
B

Bang Roy Han

Guest
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
 

Ryder Cragie

New Member
Joined
Apr 15, 2022
Messages
9
Reaction score
5
Credits
69
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:

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
8,373
Reaction score
7,272
Credits
33,318
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
 

Ryder Cragie

New Member
Joined
Apr 15, 2022
Messages
9
Reaction score
5
Credits
69
Done.


Thanks.
 
Last edited:
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Latest posts

Top