devinmaking
10-06-2011, 03:18 PM
I originally posted this in the php section but i realise this was the wrong area.
I have a problem.
I am no expert in mod rewrite and i am only just starting to use it to be honest.
Anyway the problem i have is when ever a second subdomain is used the css,images,js and all other type of files are not showing.
For instance i am trying to get:
www.domain.com/edit-blog/username/blogid
out of this
www.domain.com/users/add-blog.php?username=$username&mode=edit&id=$id
The code i am using is as follows:
RewriteRule ^edit-blog/([A-Za-z0-9-]+)/([0-9]+)$ users/add-blog.php?username=$1&mode=edit&id=$2 [L]
I have set the
RewriteBase /
but if i have a single folder like this
www.domain.com/edit-blog/username it works with no errors but as soon as i add the /bligid at the end of it the url works but the images, js, css etc are not working.
Any ideas?
I have a problem.
I am no expert in mod rewrite and i am only just starting to use it to be honest.
Anyway the problem i have is when ever a second subdomain is used the css,images,js and all other type of files are not showing.
For instance i am trying to get:
www.domain.com/edit-blog/username/blogid
out of this
www.domain.com/users/add-blog.php?username=$username&mode=edit&id=$id
The code i am using is as follows:
RewriteRule ^edit-blog/([A-Za-z0-9-]+)/([0-9]+)$ users/add-blog.php?username=$1&mode=edit&id=$2 [L]
I have set the
RewriteBase /
but if i have a single folder like this
www.domain.com/edit-blog/username it works with no errors but as soon as i add the /bligid at the end of it the url works but the images, js, css etc are not working.
Any ideas?