Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
mod_rewrite problem with subdomain..
Old 03-16-2009, 11:02 PM mod_rewrite problem with subdomain..
Junior Talker

Posts: 1
Name: Abdullah
Trades: 0
I am having a problem with mod_rewrite on subdomains..

I have a folder named 'articles' and have a .htaccess inside this foler that rewrites as:
Code:

Code:
<IfModule mod_rewrite.c>
   RewriteEngine On
RewriteRule ^/?/(.*)/([0-9]+)$ ../example.php?id=$3 [L]
</IfModule>
now when i access example.com/articles/a-title/12 it works fine...
I created a subdomain articles.example.com & when I access articles.example.com/articles/a-title/12 the server returns a 400 bad request error...

All my other rules work too without subdomain but with subdomain none works even simply opening articles.example.com returns a 400 error.. can someone please provide some assistance.
vvenomouss is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-18-2009, 02:21 AM Re: mod_rewrite problem with subdomain..
Junior Talker

Posts: 4
Trades: 0
Hi,

If you put the content in subfolder 'article' if yes means please add this line in your .htaccess file RewriteBase /(please mention that folder name). It will help you.
__________________

Please login or register to view this content. Registration is FREE

atulya is offline
Reply With Quote
View Public Profile Visit atulya's homepage!
 
Old 04-18-2009, 02:40 AM Re: mod_rewrite problem with subdomain..
Novice Talker

Posts: 5
Name: Rick Hall
Location: Chicago, IL
Trades: 0
Depending on the way Apache is setup on your server, you very well may need to write a .htaccess file in your subdomain's directory.
__________________
::
Please login or register to view this content. Registration is FREE
- Shared, Reseller, VPS &
Please login or register to view this content. Registration is FREE
Hosting

:: Sales & Technical Support Hotline (877) 44 READY | (312) 278-4446
ReadyRick is offline
Reply With Quote
View Public Profile Visit ReadyRick's homepage!
 
Reply     « Reply to mod_rewrite problem with subdomain..
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11599 seconds with 12 queries