|
|
#1 |
|
Can anyone help with .htaccess?
Hello there,
I am no web coder, but have been asked to resolve an issue with a .htaccess file. I wondered if anyone here would be willing to help me? I need to re-write the following link: Code:
http://www.mydomain.com/blogs/untitled/2009/06/my-blog-title.html Code:
http://www.mydomain.com/blogs/blog/my-blog-title/ Any help or guidance would be much appreciated. Thanks in advance
__________________
MacBook Air Mid 2012 / iPhone 5. InfoSec guy. |
|
|
|
0
|
|
|
#2 | |
|
Quote:
Code:
//301 Redirect Entire Directory RedirectMatch 301 http://www.mydomain.com/blogs/untitled/2009/06/my-blog-title.html(.*) http://www.mydomain.com/blogs/blog/my-blog-title//$1 In future, you can alter .htaccess files with this: http://www.htaccessredirect.net/index.php |
||
|
|
0
|
|
|
#3 |
|
Thanks for that man, really helped. I took it a little further with some regex matching.
Code:
RedirectMatch 301 /blogs/[0-9][0-9][0-9][0-9]/[0-9][0-9]/(.).html http://www.mydomain.com/blogs/blog/$1/
__________________
MacBook Air Mid 2012 / iPhone 5. InfoSec guy. |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 11:41 AM.







Linear Mode
